Skip to content

Commit

Permalink
http: gateway spec support
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Nov 21, 2023
1 parent 5b8de20 commit cf42e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/ipfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func redirectPathCID(w http.ResponseWriter, r *http.Request, c cid.Cid, path []s
scheme = str + "://"
}

ustr := scheme + c.String() + "." + host
ustr := scheme + c.String() + ".ipfs." + host
u, err := url.Parse(ustr)
if err != nil {
http.Error(w, "", http.StatusInternalServerError)
Expand Down

0 comments on commit cf42e44

Please sign in to comment.