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 <[email protected]>
  • Loading branch information
remeio committed Jan 9, 2025
1 parent a46ab04 commit 22924a7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@

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 +251,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 22924a7

Please sign in to comment.