Skip to content

Commit

Permalink
#7252 - print error message
Browse files Browse the repository at this point in the history
  • Loading branch information
gowthamgts authored and Stebalien committed May 4, 2020
1 parent c2f4162 commit 08fac98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/corehttp/gateway_handler.go
Expand Up @@ -381,7 +381,7 @@ func (i *gatewayHandler) serveFile(w http.ResponseWriter, req *http.Request, nam
// Fixes https://github.com/ipfs/go-ipfs/issues/7252
mimeType, err := mimetype.DetectReader(content)
if err != nil {
http.Error(w, "cannot detect content-type", http.StatusInternalServerError)
http.Error(w, fmt.Sprintf("cannot detect content-type: %s", err.Error()), http.StatusInternalServerError)
return
}

Expand Down

0 comments on commit 08fac98

Please sign in to comment.