Changeset 39 in code


Ignore:
Timestamp:
Nov 25, 2016, 10:22:44 AM (9 years ago)
Author:
asciimoo
Message:

[enh] forward content-disposition header

closes #21

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/morty.go

    r38 r39  
    257257                sanitizeHTML(&RequestConfig{Key: p.Key, BaseURL: parsedURI}, ctx, responseBody)
    258258        default:
     259                if ctx.Request.Header.Peek("Content-Disposition") != nil {
     260                        ctx.Response.Header.AddBytesV("Content-Disposition", ctx.Request.Header.Peek("Content-Disposition"))
     261                }
    259262                ctx.Write(responseBody)
    260263        }
Note: See TracChangeset for help on using the changeset viewer.