You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using swagger-client for a few years now. The problem first appeared in Node.js 18.14.x.
I am almost positive it has to do with the way the headers are serialized in the serializeHeaders function.
For testing purposes, you can configure request.userFetch to use the got npm library; this avoids the bug because got returns the Set-Cookie header as an array.
I can put up a pull request with a potential fix for this.
Thank you!
The text was updated successfully, but these errors were encountered:
Q&A (please complete the following information)
Content & configuration
Swagger/OpenAPI definition:
Describe the bug you're encountering
To reproduce...
Steps to reproduce the behavior:
File: server.js
File: spec.yaml
File: package.json
Install the dependencies:
npm install
Start the API:
npm start
File: index.js
File: package.json
Install the dependencies:
npm install
Start the test application:
npm start
Expected result
Actual result
Additional context or thoughts
I have been using
swagger-client
for a few years now. The problem first appeared in Node.js 18.14.x.I am almost positive it has to do with the way the headers are serialized in the serializeHeaders function.
For testing purposes, you can configure
request.userFetch
to use thegot
npm library; this avoids the bug becausegot
returns the Set-Cookie header as an array.I can put up a pull request with a potential fix for this.
Thank you!
The text was updated successfully, but these errors were encountered: