Skip to content

Commit

Permalink
Properly conform to rack specs for header values by calling to_s on C…
Browse files Browse the repository at this point in the history
…ontent-Length value. Fixes #9.
  • Loading branch information
warhammerkid committed Dec 8, 2011
1 parent f3f0b1f commit 4c5fa4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubyamf/request_parser.rb
Expand Up @@ -43,7 +43,7 @@ def handle_amf env
rescue Exception => e rescue Exception => e
RubyAMF.logger.log_error(e) RubyAMF.logger.log_error(e)
msg = "Invalid AMF request" msg = "Invalid AMF request"
return [400, {"Content-Type" => "text/plain", 'Content-Length' => msg.length}, [msg]] return [400, {"Content-Type" => "text/plain", 'Content-Length' => msg.length.to_s}, [msg]]
end end
env['rubyamf.response'] = RubyAMF::Envelope.new env['rubyamf.response'] = RubyAMF::Envelope.new


Expand Down

0 comments on commit 4c5fa4c

Please sign in to comment.