Skip to content

Commit cc92fb0

Browse files
authored
fix(piefed): openapi-fetch patch not applying (#2057)
1 parent 9ca8198 commit cc92fb0

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

patches/openapi-fetch.patch

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
diff --git a/src/index.js b/src/index.js
2-
index 4b226c87020cd9c75f79b1a1a22e89564022f756..e2b6ea578a120c438e370b10353fd8d8db61fdb7 100644
3-
--- a/src/index.js
4-
+++ b/src/index.js
5-
@@ -227,7 +227,7 @@ export default function createClient(clientOptions) {
1+
diff --git a/dist/index.mjs b/dist/index.mjs
2+
index 0a380f1a9f13e5feae40ae08349d2f29632e2856..e7425dd4f08f8c9044d409825200c18a415756e1 100644
3+
--- a/dist/index.mjs
4+
+++ b/dist/index.mjs
5+
@@ -170,7 +170,7 @@ function createClient(clientOptions) {
6+
}
7+
}
68
}
7-
8-
// handle empty content
99
- if (response.status === 204 || request.method === "HEAD" || response.headers.get("Content-Length") === "0") {
1010
+ if (response.status === 204 || request.method === "HEAD") {
11-
return response.ok ? { data: undefined, response } : { error: undefined, response };
11+
return response.ok ? { data: void 0, response } : { error: void 0, response };
1212
}
13-
13+
if (response.ok) {

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)