Skip to content

Commit 795a9da

Browse files
joaomaridalhoJoão Maridalho
andauthored
fix: Change Content-Type header to respect RFC 7231 (#7690)
Co-authored-by: João Maridalho <[email protected]>
1 parent a3493d9 commit 795a9da

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/brown-moons-yawn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@builder.io/qwik-city': patch
3+
---
4+
5+
fix: Change Content-Type header in qwik requests to respect RFC 7231

packages/qwik-city/src/runtime/src/use-endpoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const getFetchOptions = (
115115
method: 'POST',
116116
body: JSON.stringify(actionData),
117117
headers: {
118-
'Content-Type': 'application/json, charset=UTF-8',
118+
'Content-Type': 'application/json; charset=UTF-8',
119119
},
120120
};
121121
}

0 commit comments

Comments
 (0)