Merge lp:~leonardr/lazr.restful/optional-compression into lp:lazr.restful
Proposed by
Leonard Richardson
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~leonardr/lazr.restful/optional-compression |
Merge into: | lp:lazr.restful |
Diff against target: |
163 lines 7 files modified
src/lazr/restful/NEWS.txt (+7/-0) src/lazr/restful/_resource.py (+6/-0) src/lazr/restful/example/base/tests/root.txt (+21/-0) src/lazr/restful/example/wsgi/root.py (+3/-3) src/lazr/restful/interfaces/_rest.py (+14/-0) src/lazr/restful/version.txt (+1/-1) src/lazr/restful/wsgi.py (+12/-2) |
To merge this branch: | bzr merge lp:~leonardr/lazr.restful/optional-compression |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Edwin Grubbs (community) | code | Approve | |
Review via email: mp+13358@code.launchpad.net |
To post a comment you must log in.
This branch fixes bug 450570; see there for details. Basically I create a configuration option that will stop lazr.restful from setting any hop-to-hop headers, and create a BaseWSGIConfigu ration that sets that configuration value to false. This will prevent lazr.restful from doing things like setting the Transfer-Encoding header, which greatly displeases WSGI servers. (It doesn't displease the WSGI server I use in my tests, which is why this behavior is not tested directly, but it does displease real servers.)
It's a little unusual to change the web service configuration from a pagetest, but I thought root.txt was the best place for the new test since that's where existing compression behavior is tested.