py-WebOb: updated to 1.8.4
1.8.4:
Bugfix
- Response.content_type now accepts unicode strings on Python 2 and encodes
them to latin-1.
- Accept header classes now support a .copy() function that may be used to
create a copy. This allows create_accept_header and other like functions
to accept an pre-existing Accept header.
Warnings
- Some backslashes introduced with the new accept handling code were causing
DeprecationWarnings upon compiling the source to pyc files, all of the
backslashes have been reigned in as appropriate, and users should no longer
see DeprecationWarnings for invalid escape sequence.
1.8.3:
Bugfix
- acceptparse.AcceptValidHeader, acceptparse.AcceptInvalidHeader, and
acceptparse.AcceptNoHeader will now always ignore offers that do not
match the required media type grammar when calling .acceptable_offers().
Previous versions raised a ValueError for invalid offers in
AcceptValidHeader and returned them as acceptable in the others.
Feature
- Add Request.remote_host, exposing REMOTE_HOST environment variable.
- Added acceptparse.Accept.parse_offer to codify what types of offers
are compatible with acceptparse.AcceptValidHeader.acceptable_offers,
acceptparse.AcceptMissingHeader.acceptable_offers, and
acceptparse.AcceptInvalidHeader.acceptable_offers. This API also
normalizes the offer with lowercased type/subtype and parameter names.
UnifiedSplitRaw