Permalink
Browse files

Properly conform to rack specs for header values by calling to_s on C…

…ontent-Length value. Fixes #9.
  • Loading branch information...
1 parent f3f0b1f commit 4c5fa4cb643fe17c3f5a6ced929bf20cfc2086c1 @warhammerkid warhammerkid committed Dec 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rubyamf/request_parser.rb
@@ -43,7 +43,7 @@ def handle_amf env
rescue Exception => e
RubyAMF.logger.log_error(e)
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
env['rubyamf.response'] = RubyAMF::Envelope.new

0 comments on commit 4c5fa4c

Please sign in to comment.