Merge lp:~cjwatson/lazr.restful/etag-json into lp:lazr.restful
Proposed by
Colin Watson
Status: | Merged |
---|---|
Merged at revision: | 299 |
Proposed branch: | lp:~cjwatson/lazr.restful/etag-json |
Merge into: | lp:lazr.restful |
Prerequisite: | lp:~cjwatson/lazr.restful/sorted-entry-representation |
Diff against target: |
72 lines (+20/-14) 3 files modified
NEWS.rst (+3/-0) src/lazr/restful/_resource.py (+1/-14) src/lazr/restful/tests/test_etag.py (+16/-0) |
To merge this branch: | bzr merge lp:~cjwatson/lazr.restful/etag-json |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Cristian Gonzalez (community) | Approve | ||
Review via email: mp+402920@code.launchpad.net |
Commit message
Encode non-text/bytes field values for ETags using JSON.
Description of the change
Otherwise e.g. lists of strings were encoded as `[u'foo', u'bar']` on Python 2 but `['foo', 'bar']` on Python 3, causing ETag mismatches.
To post a comment you must log in.
Looks good!