Updated changes

This commit is contained in:
Matthew Holt 2015-07-15 09:36:34 -06:00
parent fcf2622c26
commit afc540f6b7
2 changed files with 6 additions and 5 deletions

9
dist/CHANGES.txt vendored
View File

@ -1,10 +1,11 @@
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)

View File

@ -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