We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c12d93c commit a832c98Copy full SHA for a832c98
spring-web/src/main/java/org/springframework/web/context/request/ServletWebRequest.java
@@ -231,8 +231,11 @@ else if (validateIfUnmodifiedSince(lastModifiedTimestamp)) {
231
}
232
233
private boolean validateIfMatch(@Nullable String eTag) {
234
+ if (SAFE_METHODS.contains(getRequest().getMethod())) {
235
+ return false;
236
+ }
237
Enumeration<String> ifMatchHeaders = getRequest().getHeaders(HttpHeaders.IF_MATCH);
- if (SAFE_METHODS.contains(getRequest().getMethod()) || !ifMatchHeaders.hasMoreElements()) {
238
+ if (!ifMatchHeaders.hasMoreElements()) {
239
return false;
240
241
this.notModified = matchRequestedETags(ifMatchHeaders, eTag, false);
0 commit comments