Commit 1df6b38
committed
fix(resolver): allow removing Content-Type header from Response
Fetch API doesn't allow to mutate Response
or any associated objects like Headers.
Removing the Content-Type header allows us
to skip the JSON/YAML serialization.
To skip the serialization we have clone
the Response and Headers objects and remove
the Content-Type header in clones.
This doesn't apply to node-fetch@2 which
API allows to mutate Response and all
associated objects.
Refs swagger-api/swagger-ui#85321 parent 47fe138 commit 1df6b38
File tree
1 file changed
+14
-2
lines changed- src/resolver/apidom/reference/resolve/resolvers/http-swagger-client
1 file changed
+14
-2
lines changedLines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
39 | 51 | | |
40 | 52 | | |
41 | 53 | | |
| |||
0 commit comments