Commit afc540f6 authored by Matthew Holt's avatar Matthew Holt

Updated changes

parent fcf2622c
CHANGES
<master>
- 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)
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment