Skip to content

Commit d59a02f

Browse files
author
Eran Hammer
committed
Merge pull request hapijs#2618 from jmm/docs-redirect
Fix inverted boolean argument documentation.
2 parents 6d41fb5 + 99704ed commit d59a02f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3099,7 +3099,7 @@ When using the `redirect()` method, the response object provides these additiona
30993099
- `isTemporary` - if `false`, sets status to permanent. Defaults to `true`.
31003100
- `permanent(isPermanent)` - sets the status code to `301` or `308` (based on the `rewritable()`
31013101
setting) where:
3102-
- `isPermanent` - if `true`, sets status to temporary. Defaults to `false`.
3102+
- `isPermanent` - if `false`, sets status to temporary. Defaults to `true`.
31033103
- `rewritable(isRewritable)` - sets the status code to `301`/`302` for rewritable (allows changing
31043104
the request method from 'POST' to 'GET') or `307`/`308` for non-rewritable (does not allow
31053105
changing the request method from 'POST' to 'GET'). Exact code based on the `temporary()` or

0 commit comments

Comments
 (0)