-
Notifications
You must be signed in to change notification settings - Fork 1.6k
HttpHeaderParser - relaxed timestamp parsing #6289
Copy link
Copy link
Closed
Labels
New featureFeature requestsFeature requests
Description
Is your feature request related to a problem?
I saw this in the wild: invalid cookie Expires value [value=Mon, 20-Oct-25 15:57:56 GMT]
Apparently, this 2-digit year format is an HTTP 1.0-era format. Technically, it should not be used anymore, but apparently some system still uses it. Our cookie handler should be able to parse this format.
Describe the solution you'd like.
Add a new pattern to
questdb/core/src/main/java/io/questdb/std/datetime/microtime/MicrosFormatUtils.java
Lines 381 to 384 in f0ba286
| final String[] httpPatterns = new String[]{ // priority sorted | |
| "E, d MMM yyyy HH:mm:ss Z", // HTTP standard | |
| "E, d-MMM-yyyy HH:mm:ss Z" // Microsoft EntraID | |
| }; |
Describe alternatives you've considered.
No response
Full Name:
Jaromir Hamala
Affiliation:
QuestDB
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
New featureFeature requestsFeature requests