Closed scottdickerson closed 2 months ago
Isn't that this ticket just fixed? https://github.com/orval-labs/orval/issues/1622
Yes, this problem already fixed by #1627 so i close this issue.
@scottdickerson
This issue will be fixed in the next release version 👍
What are the steps to reproduce this issue?
When I pass additional headers as the
options: RequestInit
parameter, they're overridden since the...options
spread is under theheaders: {'Content-Type': 'application/json'}
. Notice that myAccept-Language
is actually a parameter determined during runtime, so I don't think that change can be made at code generation time.What happens?
My
options.headers
are ignored.What were you expecting to happen?
My headers should override the default orval headers.
Any logs, error output, etc?
N/A
Any other comments?
What versions are you using?