….txt, section 4.1. Cookies are attribute-value pairs, so split should only return 2 values. This will allow '=' within the value of a cookie.
…-Cookie'] will return a single string. This string will be the two returned cookies separated by a comma, concatenated together. Instead this should use get_field('Set-Cookie') which returns an array of returned cookie strings.
…mmurphy/httparty into benmmurphy-content_type_charset_support
Remove trailing whitespaces
Adding java check in aliasing of multiple choices.
This is needed to hack around a lack of compatibility between ruby 2.0 and jruby compat.version=2.0.
if the response includes the charset param in the content type header the body will have the correct encoding set. if the response has utf-16 set as the content type it will try and do BOM detection. otherwise it will default to big endian. this can be overridden with the assume_utf16_is_big_endian option. this makes the json parsing usable with utf-16 since utf-16 will not parse correctly if it has been incorrectly marked as ascii.
maintain blocks passed to 'perform' in redirects
Fixed nc value being quoted, this was against spec
Ruby 2.0 tests
…ntained for each redirect
Adding COPY request handling
Don't duplicate query string arguments.
During the course of an actual request, the Request#uri method is called more than once. If the request's path is not relative, that method destructively updates @path, and so parameters get duplicated each time uri is called. This change clones the path first (and adds a lame test).
Some servers return cookies with 'Path' attribute instead of 'path'