Skip to content

Commit

Permalink
Don't send null response.body
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Sep 13, 2010
1 parent 0b473f6 commit f0d98cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/sproutcore/rack/proxy.rb
Expand Up @@ -139,7 +139,10 @@ def handle_proxy(proxy, proxy_url, env)
end end
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 end
end end
Expand Down

0 comments on commit f0d98cd

Please sign in to comment.