Merge lp:~wallyworld/lazr.restful/namedpost-url-change-1056666 into lp:lazr.restful
Proposed by
Ian Booth
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Curtis Hovey | ||||
Approved revision: | 202 | ||||
Merged at revision: | 201 | ||||
Proposed branch: | lp:~wallyworld/lazr.restful/namedpost-url-change-1056666 | ||||
Merge into: | lp:lazr.restful | ||||
Diff against target: |
73 lines (+21/-3) 4 files modified
src/lazr/restful/NEWS.txt (+6/-0) src/lazr/restful/_resource.py (+9/-0) src/lazr/restful/example/base/tests/entry.txt (+5/-2) src/lazr/restful/version.txt (+1/-1) |
||||
To merge this branch: | bzr merge lp:~wallyworld/lazr.restful/namedpost-url-change-1056666 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Review via email: mp+126405@code.launchpad.net |
Commit message
Redirect to a new location if the resource url changes after a named operation.
Description of the change
A named post operation may result in the resource on which the post is operating to have a different url at the end of the operation. Put and Patch operations do the right thing and issue a 301 with the new location, but named post operations don't. This branch corrects that.
I updated an existing doc test which performs a named post to account for the new behaviour.
To post a comment you must log in.
Thank you.