Skip to content
This repository was archived by the owner on Aug 10, 2023. It is now read-only.

Commit d99fee4

Browse files
leflohivargrimstad
authored andcommitted
Change redirect status code from 302 (Found) to 303 (See other) (#126)
1 parent ff8ae92 commit d99fee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/src/main/asciidoc/chapters/controllers.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public String redirect() {
141141
}
142142
----
143143

144-
In either case, the HTTP status code returned is 302 and relative paths are resolved relative to the application path
144+
In either case, the HTTP status code returned is 303 (See Other) and relative paths are resolved relative to the application path
145145
–for more information please refer to the Javadoc for the `seeOther` method in JAX-RS.
146146
It is worth noting that redirects require client cooperation (all browsers support it, but certain CLI clients may not)
147147
and result in a completely new request-response cycle in order to access the intended controller.

0 commit comments

Comments
 (0)