Add newline for PUT response
This commit is contained in:
parent
1e1f28658d
commit
81a1513809
@ -4,6 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
"mime/multipart"
|
"mime/multipart"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
@ -611,7 +612,7 @@ func TestPutUpload(t *testing.T) {
|
|||||||
|
|
||||||
mux.ServeHTTP(w, req)
|
mux.ServeHTTP(w, req)
|
||||||
|
|
||||||
if w.Body.String() != Config.siteURL+filename {
|
if w.Body.String() != fmt.Sprintf("%s\n", Config.siteURL+filename) {
|
||||||
t.Fatal("Response was not expected URL")
|
t.Fatal("Response was not expected URL")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user