7 Commits

Author SHA1 Message Date
Olle Jonsson
0f17254d4a Carry #579: Faraday::Utils::Headers YAML can be serialized (#634)
* Bootstrap method that fixes deserializing with YAML

* YAML encoding of Header

* Utils.rb: Avoid relying on the #names method
2016-11-23 10:55:24 +00:00
Ketan Padegaonkar
27d1fac7b1 Faraday::Utils::Headers#replace has side-effects
The headers hash contains some local state inside the @names instance variable as a means of doing case-insensitive hashes. This has the side-effect that one has to remember to perform mirror operations on the @names hash in addition to the object itself(Headers).

A case in point is the replace method – which did not clear out the @names hash which was causing side-effects by not performing a mirror operation (clear) on the @names hash.
2014-05-05 12:05:12 -03:00
Erik Michaels-Ober
edcd7d61f3 Make formatting of then, yield, and super consistent 2014-01-09 02:59:12 +01:00
Mislav Marohnić
bf973245b5 fix brittle URI parser tests failing on Rubinius
The tests relied on the output of Method#to_s, which seems unreliable on
non-MRI Rubies. Avoid that and ensure the default_uri_parser is restored.
2013-06-25 06:14:41 +02:00
Mislav Marohnić
cad28c0ef3 simpler FakeSafeBuffer implementation for testing
references #93
2013-06-25 03:58:14 +02:00
Jason Garber
c328e5285a Fix #93 again: ActiveSupport::SafeBuffer#gsub bug 2013-06-24 11:03:39 -04:00
risk danger olson
f94f30f1bf allow Utils.default_uri_parser to take a URI object that responds to #parse 2013-05-08 09:01:07 -06:00