master
HimbeerserverDE 2021-03-06 20:34:52 +01:00
parent 1521a3d253
commit 109afc0c43
No known key found for this signature in database
GPG Key ID: 1A651504791E6A8B
2 changed files with 3 additions and 3 deletions

2
rpc.go
View File

@ -317,7 +317,7 @@ func init() {
// Also refetch media in case something has not
// been downloaded yet
loadMedia(map[string]struct{}{server.(string): struct{}{}})
loadMedia(map[string]struct{}{server.(string): {}})
srvaddr, err := net.ResolveUDPAddr("udp", straddr.(string))
if err != nil {

View File

@ -12,7 +12,7 @@ import (
)
const (
AnnounceStart = "start"
AnnounceStart = "start"
AnnounceUpdate = "update"
AnnounceDelete = "delete"
)
@ -118,7 +118,7 @@ func Announce(action string) error {
part.Write(s)
writer.Close()
_, err = http.Post(listsrv + "/announce", "multipart/form-data; boundary=" + writer.Boundary(), rqBody)
_, err = http.Post(listsrv+"/announce", "multipart/form-data; boundary="+writer.Boundary(), rqBody)
if err != nil {
return err
}