Open ryou90 opened 2 months ago
Sounds like a bug in bun not openapi-fetch? I would expect the runtime to conform to the spec instead of having libraries patch all sort of runtime bugs. Especially now since there seems to be a new js runtime every week.
The Bun bug/issue is now closed, so perhaps this is now no longer a problem (when using a sufficiently recent version of Bun)
Description
To make Openapi-Fetch more compatible with Bun, the fetch call should be modified. The problem is that Bun removes all header information within the request object. To avoid this problem, the headers should be passed as extra parameters and not within the request object.
See also here: https://github.com/oven-sh/bun/issues/9846
Current behavior :
Suggestion:
Reproduction Create simple Get request with header informations.
Expected result
Headers send with request