mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-25 19:52:48 +00:00
Fix: use `X-Cr` as custom header prefix
This commit is contained in:
parent
e3d3e790f1
commit
691e82868d
|
|
@ -1201,8 +1201,8 @@ function getCookieByString(cookieName) {
|
|||
multipart: false,
|
||||
send_file_name: false,
|
||||
headers: {
|
||||
"X-Path": encodeURIComponent(file.path),
|
||||
"X-FileName": encodeURIComponent(
|
||||
"X-Cr-Path": encodeURIComponent(file.path),
|
||||
"X-Cr-FileName": encodeURIComponent(
|
||||
getFileKey(up, file, func)
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1076,8 +1076,8 @@ function getCookieByString(cookieName) {
|
|||
multipart: false,
|
||||
send_file_name: false,
|
||||
headers: {
|
||||
"X-Path": encodeURIComponent(file.path),
|
||||
"X-FileName": encodeURIComponent(
|
||||
"X-Cr-Path": encodeURIComponent(file.path),
|
||||
"X-Cr-FileName": encodeURIComponent(
|
||||
getFileKey(up, file, func)
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1155,8 +1155,8 @@ function getCookieByString(cookieName) {
|
|||
multipart: false,
|
||||
send_file_name: false,
|
||||
headers: {
|
||||
"X-Path": encodeURIComponent(file.path),
|
||||
"X-FileName": encodeURIComponent(
|
||||
"X-Cr-Path": encodeURIComponent(file.path),
|
||||
"X-Cr-FileName": encodeURIComponent(
|
||||
getFileKey(up, file, func)
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1051,10 +1051,10 @@ function getCookieByString(cookieName) {
|
|||
multipart: false,
|
||||
send_file_name: false,
|
||||
headers: {
|
||||
"X-Policy": that.putPolicy,
|
||||
"X-Overwrite": "false",
|
||||
"X-Cr-Policy": that.putPolicy,
|
||||
"X-Cr-Overwrite": "false",
|
||||
Authorization: that.token,
|
||||
"X-FileName": encodeURIComponent(
|
||||
"X-Cr-FileName": encodeURIComponent(
|
||||
getFileKey(up, file, func)
|
||||
),
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue