From 9ad95a24d5d861401a83d792f7b6054b3532f9a9 Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Fri, 29 Jan 2021 16:06:30 +0100 Subject: [PATCH] Fix format [gofmt] --- httpupload.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/httpupload.go b/httpupload.go index 7c8bab4..ed2f285 100644 --- a/httpupload.go +++ b/httpupload.go @@ -79,12 +79,12 @@ func httpUpload(client *xmpp.Client, jserver string, filePath string) string { URL string `xml:"url,attr"` } `xml:"get"` Put struct { - Text string `xml:",chardata"` - URL string `xml:"url,attr"` - Headers []struct { - Name string `xml:"name,attr"` - Value string `xml:",chardata"` - } `xml:"header"` + Text string `xml:",chardata"` + URL string `xml:"url,attr"` + Headers []struct { + Name string `xml:"name,attr"` + Value string `xml:",chardata"` + } `xml:"header"` } `xml:"put"` } @@ -217,12 +217,12 @@ func httpUpload(client *xmpp.Client, jserver string, filePath string) string { log.Fatal(err) } req.Header.Set("Content-Type", mimeType) - for _, h := range iqHttpUploadSlotXML.Put.Headers { - switch h.Name { - case "Authorization", "Cookie", "Expires": - req.Header.Set(h.Name, h.Value) - } - } + for _, h := range iqHttpUploadSlotXML.Put.Headers { + switch h.Name { + case "Authorization", "Cookie", "Expires": + req.Header.Set(h.Name, h.Value) + } + } resp, err := httpClient.Do(req) if err != nil { log.Fatal(err)