Skip to content

Commit

Permalink
New version (#163)
Browse files Browse the repository at this point in the history
Update to version v0.1.0 since there are API changes:
- Support sepraate encrypted and non-encrypted lookup paths
- Removed support for HTTP POST /multihash
- Return status 405 "method not allowed" where appropriate
  • Loading branch information
gammazero authored Sep 19, 2023
1 parent 6a168a7 commit da68a89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions find.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func (s *server) findCid(w http.ResponseWriter, r *http.Request, encrypted bool)
s.find(w, r, c.Hash(), encrypted)
default:
w.Header().Set("Allow", http.MethodGet)
w.Header().Add("Allow", http.MethodOptions)
http.Error(w, "", http.StatusMethodNotAllowed)
}
}
Expand All @@ -57,6 +58,7 @@ func (s *server) findMultihashSubtree(w http.ResponseWriter, r *http.Request, en
s.find(w, r, mh, encrypted)
default:
w.Header().Set("Allow", http.MethodGet)
w.Header().Add("Allow", http.MethodOptions)
http.Error(w, "", http.StatusMethodNotAllowed)
}
}
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "v0.0.7"
"version": "v0.1.0"
}

0 comments on commit da68a89

Please sign in to comment.