We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nodejs v20.15.0
_
Since the latest release of unjs/h3 v1.12.0, TypedHeaders 'retry-after' is missing string type:
unjs/h3
string
h3/src/types/_headers.ts
Line 42 in 6765a6e
In Nuxt app, I'm trying to set the response headers by this:
... setResponseHeader(event, 'Retry-After', (maintenanceDateTo || dateNextDay).toUTCString())
Previously it worked fine since number or string values were valid. Now TS drops an error in a reason described above.
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Nodejs v20.15.0
Reproduction
_
Describe the bug
Since the latest release of
unjs/h3
v1.12.0, TypedHeaders 'retry-after' is missingstring
type:h3/src/types/_headers.ts
Line 42 in 6765a6e
According to MDN docs, it can take as number (seconds) as well as a date string:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After
Additional context
In Nuxt app, I'm trying to set the response headers by this:
Previously it worked fine since number or string values were valid. Now TS drops an error in a reason described above.
Logs
No response
The text was updated successfully, but these errors were encountered: