Re: [PR] Implement handling of invalid Date header in responses [httpcomponents-core]

2024-10-23 Thread via GitHub
arturobernalg merged PR #500: URL: https://github.com/apache/httpcomponents-core/pull/500 -- 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: dev-unsubscr..

Re: [PR] Implement handling of invalid Date header in responses [httpcomponents-core]

2024-10-22 Thread via GitHub
arturobernalg commented on code in PR #500: URL: https://github.com/apache/httpcomponents-core/pull/500#discussion_r1811122466 ## httpcore5/src/main/java/org/apache/hc/core5/http/protocol/ResponseDate.java: ## @@ -46,27 +46,49 @@ * This interceptor is recommended for the HTTP

Re: [PR] Implement handling of invalid Date header in responses [httpcomponents-core]

2024-10-22 Thread via GitHub
ok2c commented on code in PR #500: URL: https://github.com/apache/httpcomponents-core/pull/500#discussion_r1810132671 ## httpcore5/src/main/java/org/apache/hc/core5/http/protocol/ResponseDate.java: ## @@ -46,27 +46,49 @@ * This interceptor is recommended for the HTTP protocol

Re: [PR] Implement handling of invalid Date header in responses [httpcomponents-core]

2024-10-22 Thread via GitHub
ok2c commented on code in PR #500: URL: https://github.com/apache/httpcomponents-core/pull/500#discussion_r1810132671 ## httpcore5/src/main/java/org/apache/hc/core5/http/protocol/ResponseDate.java: ## @@ -46,27 +46,49 @@ * This interceptor is recommended for the HTTP protocol

Re: [PR] Implement handling of invalid Date header in responses [httpcomponents-core]

2024-10-21 Thread via GitHub
arturobernalg commented on PR #500: URL: https://github.com/apache/httpcomponents-core/pull/500#issuecomment-2427284467 > By the way `status >= HttpStatus.SC_OK` check can be removed, as 1xx intermediate response messages never get passed to the protocol handler along with final responses.

Re: [PR] Implement handling of invalid Date header in responses [httpcomponents-core]

2024-10-21 Thread via GitHub
ok2c commented on PR #500: URL: https://github.com/apache/httpcomponents-core/pull/500#issuecomment-2427019299 @arturobernalg Yes, pretty much, but with a boolean flag (`alwaysReplace or some such`) like you had before. By the way `status >= HttpStatus.SC_OK` check can be removed, a

Re: [PR] Implement handling of invalid Date header in responses [httpcomponents-core]

2024-10-21 Thread via GitHub
arturobernalg commented on PR #500: URL: https://github.com/apache/httpcomponents-core/pull/500#issuecomment-2426943351 > @arturobernalg Looks unnecessary complex. So what if the `DATE` can be successfully parsed but it represents a point in time when Jesus roamed Galilea? What good that t

Re: [PR] Implement handling of invalid Date header in responses [httpcomponents-core]

2024-10-21 Thread via GitHub
ok2c commented on PR #500: URL: https://github.com/apache/httpcomponents-core/pull/500#issuecomment-2426462442 @arturobernalg Looks unnecessary complex. So what if the `DATE` can be successfully parsed but it represents a point in time when Jesus roamed Galilea? What good that that make? I

[PR] Implement handling of invalid Date header in responses [httpcomponents-core]

2024-10-20 Thread via GitHub
arturobernalg opened a new pull request, #500: URL: https://github.com/apache/httpcomponents-core/pull/500 This pull request optimizes the handling of the Date header in HTTP responses by ensuring that invalid Date headers are correctly replaced with the current time when necessary, followi