Fix reverse boltdb list and tests

This commit is contained in:
Bel LaPointe
2018-10-11 08:19:49 -06:00
parent c4d3b24e5c
commit c32ef6c099
4 changed files with 14 additions and 9 deletions

View File

@@ -96,8 +96,12 @@ func (s *Server) feed(w http.ResponseWriter, r *http.Request) {
case "tag":
s.getFeedTag(w, r)
default:
r.URL.Path = v + "/" + r.URL.Path
s.getFeed(w, r)
if v == "" {
s.bad(w, r)
} else {
r.URL.Path = v + "/" + r.URL.Path
s.getFeed(w, r)
}
}
case "POST":
s.newFeed(w, r)