michael-o commented on code in PR #323:
URL: https://github.com/apache/maven-resolver/pull/323#discussion_r1279731434


##########
maven-resolver-transport-http/src/main/java/org/eclipse/aether/transport/http/HttpTransporter.java:
##########
@@ -641,6 +642,17 @@ public void handle(CloseableHttpResponse response) throws 
IOException, TransferC
                     task.setDataFile(dataFile);
                 }
             }
+            if (task.getDataFile() != null) {
+                Header lastModifiedHeader =
+                        response.getFirstHeader(HttpHeaders.LAST_MODIFIED); // 
note: Wagon also does first not last

Review Comment:
   According to https://www.rfc-editor.org/rfc/rfc9110#name-collected-abnf it 
can only appear only once anyway. Everything else is protocol violation.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to