Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
Updated server.coffee with content-encoding header support
Browse files Browse the repository at this point in the history
  • Loading branch information
demersus committed Jan 3, 2012
1 parent 3a19c2a commit c14c217
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server.coffee
Expand Up @@ -125,7 +125,10 @@ server = Http.createServer (req, resp) ->
'content-length' : content_length
'Camo-Host' : camo_hostname
'X-Content-Type-Options' : 'nosniff'


if srcResp.headers['content-encoding']
newHeaders['content-encoding'] = srcResp.headers['content-encoding']

srcResp.on 'end', ->
finish resp

Expand Down

0 comments on commit c14c217

Please sign in to comment.