drbrain/net-http-persistent — Issue #17: Headers are appended with #add_field, preventing cleanup.
Author: andkerosine
Created: 2012-02-07 00:15:45+00:00
State: open

This is almost never an issue, but such functionality is desirable in some cases.

Reproduction of the problem:

```ruby
require 'net/http/persistent'

http = Net::HTTP::Persistent.new
http.headers['User-Agent'] = 'testing'
puts http.headers # => {"User-Agent"=>"testing"}
uri = URI('http://whatsmyuseragent.com/')
puts http.request(uri).body.index('Ruby, testing') # => 2442
```