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

Commit

Permalink
Merge pull request #84 from cakecatz/master
Browse files Browse the repository at this point in the history
Return empty string when Accept-Encoding is undefined
  • Loading branch information
atmos committed Jul 10, 2015
2 parents e1ee904 + dbdfcae commit da97a43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ server = Http.createServer (req, resp) ->
'Via' : user_agent
'User-Agent' : user_agent
'Accept' : req.headers.accept ? 'image/*'
'Accept-Encoding' : req.headers['accept-encoding']
'Accept-Encoding' : req.headers['accept-encoding'] ? ''
"X-Frame-Options" : default_security_headers["X-Frame-Options"]
"X-XSS-Protection" : default_security_headers["X-XSS-Protection"]
"X-Content-Type-Options" : default_security_headers["X-Content-Type-Options"]
Expand Down
2 changes: 1 addition & 1 deletion server.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit da97a43

Please sign in to comment.