Permalink
Browse files

Don't send null response.body

  • Loading branch information...
1 parent 0b473f6 commit f0d98cdfbb795b7c32b8f14160f1bbfca0ea5d56 @wagenet wagenet committed Sep 13, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/sproutcore/rack/proxy.rb
@@ -139,7 +139,10 @@ def handle_proxy(proxy, proxy_url, env)
end
end
- return [status, ::Rack::Utils::HeaderHash.new(response_headers), [response.body]]
+ # Thin doesn't like null bodies
+ response_body = response.body || ''
+
+ return [status, ::Rack::Utils::HeaderHash.new(response_headers), [response_body]]
end
end
end

0 comments on commit f0d98cd

Please sign in to comment.