nahi/httpclient — pull request #106 by zenchild (2012-07-26 15:37:44+00:00)
Title: Fix encoding inconsistencies with OpenSSL::SSL::SSLSocket

There is some inconsistent encoding behavior that I have tried to fix here. In particular OpenSSL::SSL::SSLSocket returns strings with different encoding types at times and can lead to an impedance mismatch of sorts. For instance if a body contains something like so:

```html

• Test one
• Test two

```
The bullet is an encoded character and lets say the body is chunked between the "li" elements. If the first part is encoded as ASCII_8BIT and the second part is encoded as US_ASCII it will raise an exception (Encoding::CompatibilityError) in HTTPClient#do_get_block where we concatenate the content:

```ruby
content << part
```