Skip to content

Commit

Permalink
Change the import order, and use HttpHeaders.
Browse files Browse the repository at this point in the history
Signed-off-by: Mengqi Xu <2663479778@qq.com>
  • Loading branch information
remeio committed Jan 9, 2025
1 parent a46ab04 commit 74d8cc9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@

import org.springframework.core.MethodParameter;
import org.springframework.core.ResolvableType;
import org.springframework.http.HttpStatusCode;
import org.springframework.http.HttpStatus;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.HttpStatusCode;
import org.springframework.http.ProblemDetail;
import org.springframework.http.RequestEntity;
import org.springframework.http.ResponseEntity;
Expand Down Expand Up @@ -250,7 +250,7 @@ && isResourceNotModified(inputMessage, outputMessage)) {
}
}
else if (httpStatusCode.is3xxRedirection()) {
String location = outputHeaders.getFirst("location");
String location = outputHeaders.getFirst(HttpHeaders.LOCATION);
if (location != null) {
saveFlashAttributes(mavContainer, webRequest, location);
}
Expand Down

0 comments on commit 74d8cc9

Please sign in to comment.