temp(releaser/github): modify test

This commit is contained in:
fwiedmann
2019-08-07 23:11:04 +02:00
parent bdc4fb1d74
commit 3c500142aa

View File

@@ -130,7 +130,9 @@ func initHTTPServer(respCode int, body string) *httptest.Server {
return httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
rw.Write([]byte(body))
rw.WriteHeader(500)
rw.Header().Set("Content-Type", "application/json")
rw.WriteHeader(respCode)
}))
}