diff --git a/dist/CHANGES.txt b/dist/CHANGES.txt index 1be7e263..b7238d25 100644 --- a/dist/CHANGES.txt +++ b/dist/CHANGES.txt @@ -1,10 +1,11 @@ CHANGES - -- errors: Error log now includes timestamp with each entry -- gzip: Default filtering is by extension (fixes bug); removed MIME type filter +0.7.3 (July 15, 2015) +- errors: Error log now shows timestamp with each entry +- gzip: Fixed; Default filtering is by extension; removed MIME type filter - import: Fixed; works inside and outside server blocks -- templates: Restricted or missing files result in proper 403 or 404 error +- redir: Query string preserved on catch-all redirects +- templates: Proper 403 or 404 errors for restricted or missing files 0.7.2 (July 1, 2015) diff --git a/middleware/redirect/redirect.go b/middleware/redirect/redirect.go index 2c5de410..56275d8b 100644 --- a/middleware/redirect/redirect.go +++ b/middleware/redirect/redirect.go @@ -23,7 +23,7 @@ type Redirect struct { func (rd Redirect) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) { for _, rule := range rd.Rules { if rule.From == "/" { - // Catchall redirect preserves path (TODO: Standardize/formalize this behavior) + // Catchall redirect preserves path and query string toURL, err := url.Parse(rule.To) if err != nil { return http.StatusInternalServerError, err