mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Proper content type header for Android
This commit is contained in:
@ -48,7 +48,10 @@ const apiTooot = async <T = unknown>({
|
||||
url: `${url}`,
|
||||
params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Content-Type':
|
||||
body && body instanceof FormData
|
||||
? 'multipart/form-data'
|
||||
: 'application/json',
|
||||
'User-Agent': `tooot/${Constants.manifest?.version}`,
|
||||
Accept: '*/*',
|
||||
...headers
|
||||
|
Reference in New Issue
Block a user