mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-18 20:50:41 -04:00
incorporate requested changes
Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
1 parent
da29c8e8fd
commit
fd4f8ce758
1 file changed
+1
-1
@@ -108,7 +108,7 @@ func (h *CheckHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
h.conf.logger.Error().Err(err).Msg("check failed")
|
||||
}
|
||||
|
||||
w.Header().Set("Content-Type", "text/plain") // fixMe: should be application/json!?!
|
||||
w.Header().Set("Content-Type", "text/plain")
|
||||
w.WriteHeader(status)
|
||||
|
||||
if _, err := io.WriteString(w, http.StatusText(status)); err != nil { // io.WriteString should not fail, but if it does, we want to know.
|
||||
|
||||
Reference in new issue
Block a user