Added rewrite method call to ensure archive URLs are rewritten.
This commit is contained in:
parent
6290507be3
commit
0c356dc8a4
@ -56,7 +56,7 @@ func (s *Server) writeHeaders(w http.ResponseWriter, e *Entry) {
|
|||||||
// necessity) rejected since it can't be cached.
|
// necessity) rejected since it can't be cached.
|
||||||
func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
||||||
if req.Method == "GET" {
|
if req.Method == "GET" {
|
||||||
r, eChan, err := s.cache.GetReader(req.RequestURI)
|
r, eChan, err := s.cache.GetReader(rewrite(req.RequestURI))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user