Skip to content

Commit

Permalink
feat(code): Change defaults
Browse files Browse the repository at this point in the history
Default to use temporary HTTP 302 status code for redirects
  • Loading branch information
adam-26 committed Feb 19, 2018
1 parent 6a539a2 commit 3add78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redirectAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function redirectAction(options: Object = {}) {
shouldRedirect,
...redirectProps
} = Object.assign({
statusCode: 301,
statusCode: 302, // always default to temporary redirects
shouldRedirect: true,
mapParamsToProps: params => params
}, options);
Expand Down

0 comments on commit 3add78c

Please sign in to comment.