Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixing content length issue
  • Loading branch information
guilhermesilveira committed Apr 8, 2010
1 parent ff27652 commit 481dae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/restfulie/server/action_controller/params_parser.rb
Expand Up @@ -48,7 +48,7 @@ def call(env)
if params = parse_formatted_parameters(env)
env["action_controller.request.request_parameters"] = params
else
if env["CONTENT_LENGTH"] != "0"
if env["CONTENT_LENGTH"] && (env["CONTENT_LENGTH"] != "0")
return [415, {'Content-Type' => 'text/html'}, "<html><body><h1>415 Unsupported Media Type</h1></body></html>"]
end
end
Expand Down

0 comments on commit 481dae0

Please sign in to comment.