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

Commit

Permalink
ensure content-type is returned before splicing
Browse files Browse the repository at this point in the history
  • Loading branch information
atmos committed Dec 1, 2010
1 parent e6a6f91 commit db9c08f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ server = Http.createServer (req, resp) ->

switch srcResp.statusCode
when 200
if newHeaders['content-type'].slice(0, 5) != 'image'
if newHeaders['content-type'] && newHeaders['content-type'].slice(0, 5) != 'image'
four_oh_four("Non-Image content-type returned")

log newHeaders
Expand Down

0 comments on commit db9c08f

Please sign in to comment.