Skip to content

Commit

Permalink
Fix rack.input for Rack::Lint on 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi committed Oct 25, 2009
1 parent ecc9002 commit 417fa93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/thin/request.rb
Expand Up @@ -49,7 +49,10 @@ def initialize
@parser = Thin::HttpParser.new
@data = ''
@nparsed = 0
@body = StringIO.new
body = ''
# For Rack::Lint on 1.9, ensure that the encoding is always for spec
body.force_encoding('ASCII-8BIT') if body.respond_to?(:force_encoding)
@body = StringIO.new(body)
@env = {
SERVER_SOFTWARE => SERVER,
SERVER_NAME => LOCALHOST,
Expand Down

0 comments on commit 417fa93

Please sign in to comment.