@cryptotaxi247 / kubo / commits / a12d2e265

chore(gateway): fix error call

Steven Allen committed Nov 6, 2019 at 11:44 UTC a12d2e265e665021ca3a94b4b6c1a28e3293516b
1 file changed +1 -1
core/corehttp/gateway_handler.go
+1 -1
@@ -391,7 +391,7 @@ func (i *gatewayHandler) serveFile(w http.ResponseWriter, req *http.Request, nam
391 ctype = http.DetectContentType(buf[:n])
392 _, err := content.Seek(0, io.SeekStart)
393 if err != nil {
394 - Error(w, "seeker can't seek", http.StatusInternalServerError)
394 + http.Error(w, "seeker can't seek", http.StatusInternalServerError)
395 return
396 }
397 }