mirror of
https://github.com/sussy-code/providers.git
synced 2026-04-17 23:11:28 +00:00
set header for urlsearchparams request
This commit is contained in:
parent
36d4b41baa
commit
b0da041ba9
1 changed files with 3 additions and 1 deletions
|
|
@ -12,7 +12,9 @@ export function serializeBody(body: FetcherOptions['body']): SeralizedBody {
|
|||
if (body === undefined || typeof body === 'string' || body instanceof URLSearchParams || body instanceof FormData) {
|
||||
if (body instanceof URLSearchParams && isReactNative()) {
|
||||
return {
|
||||
headers: {},
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
},
|
||||
body: body.toString(),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue