Skip to content

Commit

Permalink
[fc] Repository: plone.app.redirector
Browse files Browse the repository at this point in the history
Branch: refs/heads/master
Date: 2020-02-14T18:57:04+01:00
Author: ale-rt (ale-rt) <alessandro.pisa@gmail.com>
Commit: plone/plone.app.redirector@22399a6

Fix http status of the response

The http status of the response is changed from 301 (Moved Permanently)
to 302 (Found) for GET requests and to 307 (Temporary Redirect) for
other request methods because nothing prevents the URL to be reused in
the future.

This was inspired by plone/plone.rest#76

Refs #8

Files changed:
A news/8.feature
M plone/app/redirector/browser.py
M plone/app/redirector/tests/test_view.py
Repository: plone.app.redirector

Branch: refs/heads/master
Date: 2020-02-26T23:04:48+01:00
Author: Jens W. Klein (jensens) <jk@kleinundpartner.at>
Commit: plone/plone.app.redirector@2f6da29

Merge pull request #22 from plone/8-http-status

Fix http status of the response

Files changed:
A news/8.feature
M plone/app/redirector/browser.py
M plone/app/redirector/tests/test_view.py
  • Loading branch information
jensens committed Feb 26, 2020
1 parent 2a142d3 commit ac0aad6
Showing 1 changed file with 29 additions and 22 deletions.
Loading

0 comments on commit ac0aad6

Please sign in to comment.