orangeCatDeveloper commented on issue #1677:
URL: https://github.com/apache/hertzbeat/issues/1677#issuecomment-5861052480

   Root cause, still present on master: the shared HTTP client (HttpClient 4.5) 
does not set a cookie spec, so it uses the default spec, which cannot parse RFC 
1123 `expires` dates such as `Wed, 22 Mar 2034 06:03:16 GMT` and logs `Invalid 
cookie header` for every response.
   
   
https://github.com/apache/hertzbeat/blob/8104d7057c72f9c18dea31d32e076750d2c34020/hertzbeat-collector/hertzbeat-collector-common/src/main/java/org/apache/hertzbeat/collector/collect/common/http/CommonHttpClient.java#L129-L135
   
   Adding `.setCookieSpec(CookieSpecs.STANDARD)` to the `RequestConfig` would 
fix it.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to