mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-25 17:56:34 +08:00
Updated changes
This commit is contained in:
parent
fcf2622c26
commit
afc540f6b7
9
dist/CHANGES.txt
vendored
9
dist/CHANGES.txt
vendored
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user