Skip to content

Commit 633da0d

Browse files
authored
Merge pull request #126 from Fefbug/master
Send a temporary redirect response in AwsHttpSerletResponse sendRedirect
2 parents 211224e + ff97607 commit 633da0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsHttpServletResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public void sendError(int i) throws IOException {
169169

170170
@Override
171171
public void sendRedirect(String s) throws IOException {
172-
setStatus(SC_MOVED_PERMANENTLY);
172+
setStatus(SC_MOVED_TEMPORARILY);
173173
addHeader(HttpHeaders.LOCATION, s);
174174
flushBuffer();
175175
}

0 commit comments

Comments
 (0)