aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-11-15 16:55:57 +0100
committerChocobozzz <me@florianbigard.com>2022-11-15 16:55:57 +0100
commite57a840ede1f0eadec209e58401008f232249300 (patch)
tree6392deb12b3dacf528487cec0d77fbbce9556348
parent27744d8e563aea995f7911330c63add85ed31ca4 (diff)
downloadPeerTube-e57a840ede1f0eadec209e58401008f232249300.tar.gz
PeerTube-e57a840ede1f0eadec209e58401008f232249300.tar.zst
PeerTube-e57a840ede1f0eadec209e58401008f232249300.zip
Remove content type for raw requests
-rw-r--r--shared/server-commands/requests/requests.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared/server-commands/requests/requests.ts b/shared/server-commands/requests/requests.ts
index b247017fd..dc9cf4e01 100644
--- a/shared/server-commands/requests/requests.ts
+++ b/shared/server-commands/requests/requests.ts
@@ -33,6 +33,7 @@ function makeRawRequest (options: {
33 return makeGetRequest({ 33 return makeGetRequest({
34 url: `${protocol}//${host}`, 34 url: `${protocol}//${host}`,
35 path: pathname, 35 path: pathname,
36 contentType: undefined,
36 37
37 ...pick(options, [ 'expectedStatus', 'range', 'token', 'query' ]) 38 ...pick(options, [ 'expectedStatus', 'range', 'token', 'query' ])
38 }) 39 })