Permalink
Browse files

Make sure Content-Length doesn't hang the tests.

  • Loading branch information...
jcoglan committed Mar 30, 2012
1 parent 7fcd081 commit 6570f2aa41b123ff45dd58db182deaa45d40d0d2
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/faye/adapters/rack_adapter.rb
@@ -93,7 +93,7 @@ def serve_client_script(env)
headers = TYPE_SCRIPT.dup
ims = env['HTTP_IF_MODIFIED_SINCE']
- headers['Content-Length'] = '0'
+ headers['Content-Length'] = '0' unless env[HTTP_X_NO_CONTENT_LENGTH]
headers['ETag'] = @client_digest
headers['Last-Modified'] = @client_mtime.httpdate

0 comments on commit 6570f2a

Please sign in to comment.