swagger-typescript-api
swagger-typescript-api copied to clipboard
Clone the response in fetch HTTP client
In some cases when using the --unwrap-response-data
and the API throw an error, I'd get the following error : TypeError: body used already for
.
I noticed that in the fetch HTTP Client, the response was not cloned, preventing the use of the response afterwards.
This PR fixes this issue.
https://github.com/node-fetch/node-fetch/issues/533