Skip to content

Commit

Permalink
Actually check for proper method on 1.9 encoding check.
Browse files Browse the repository at this point in the history
  • Loading branch information
macournoyer committed Feb 25, 2010
1 parent bd97697 commit 269f7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thin/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Request

INITIAL_BODY = ''
# Force external_encoding of request's body to ASCII_8BIT
INITIAL_BODY.encode!(Encoding::ASCII_8BIT) if INITIAL_BODY.respond_to?(:encode)
INITIAL_BODY.encode!(Encoding::ASCII_8BIT) if INITIAL_BODY.respond_to?(:encode!)

# Freeze some HTTP header names & values
SERVER_SOFTWARE = 'SERVER_SOFTWARE'.freeze
Expand Down

0 comments on commit 269f7db

Please sign in to comment.