]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Remove content type for raw requests
authorChocobozzz <me@florianbigard.com>
Tue, 15 Nov 2022 15:55:57 +0000 (16:55 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 15 Nov 2022 15:55:57 +0000 (16:55 +0100)
shared/server-commands/requests/requests.ts

index b247017fd31a7db915819e0f53fc6e97abe3201a..dc9cf4e015a2bcea704ceec00896fcd98bfecda6 100644 (file)
@@ -33,6 +33,7 @@ function makeRawRequest (options: {
   return makeGetRequest({
     url: `${protocol}//${host}`,
     path: pathname,
+    contentType: undefined,
 
     ...pick(options, [ 'expectedStatus', 'range', 'token', 'query' ])
   })