Skip to content

Commit

Permalink
ipfs#7252 - print error message
Browse files Browse the repository at this point in the history
  • Loading branch information
gowthamgts authored and Walter Beegle committed Jun 8, 2020
1 parent 520d47b commit fe52b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/corehttp/gateway_handler.go
Expand Up @@ -393,7 +393,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 fe52b5b

Please sign in to comment.