Skip to content

Commit

Permalink
dealing with 7bit encoding. closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jan 20, 2010
1 parent 0ddf33b commit 542aa05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Bug Fixes:

* Rescue errors from bogus encodings
* 7bit content-encoding support. Thanks sporkmonger! GH #2

=== 0.9.3

Expand Down
2 changes: 2 additions & 0 deletions lib/mechanize/chain/body_decoding_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def handle(ctx, options)
end
when 'x-gzip'
body.read
when '7bit'
body.read
else
raise 'Unsupported content encoding'
end
Expand Down

0 comments on commit 542aa05

Please sign in to comment.