Fix check for enabling content_length_workaround
This commit is contained in:
parent
33915a595d
commit
f5853ccf95
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ async function mreq(method, url, body, extra = {}) {
|
||||||
const root = await res.json()
|
const root = await res.json()
|
||||||
|
|
||||||
if (!res.ok || root.errcode) {
|
if (!res.ok || root.errcode) {
|
||||||
if (root.error?.includes("Content-Length") || !reg.ooye.content_length_workaround) {
|
if (root.error?.includes("Content-Length") && !reg.ooye.content_length_workaround) {
|
||||||
reg.ooye.content_length_workaround = true
|
reg.ooye.content_length_workaround = true
|
||||||
const root = await mreq(method, url, body, extra)
|
const root = await mreq(method, url, body, extra)
|
||||||
console.error("OOYE cannot stream uploads to Synapse. The `content_length_workaround` option"
|
console.error("OOYE cannot stream uploads to Synapse. The `content_length_workaround` option"
|
||||||
|
|
Loading…
Reference in a new issue