Skip to content

Commit 3f2282f

Browse files
authored
Merge pull request chavyleung#148 from 0x959/master
更新[10010]: 修复 QuanX 环境下请求问题, 感谢 @0x959 的 PR
2 parents b462a1d + 3ec5783 commit 3f2282f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎10010/10010.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ function init() {
221221
}
222222
log = (message) => console.log(message)
223223
get = (url, cb) => {
224+
if (url['headers'].hasOwnProperty('Content-Length')) delete loginlotteryheaderVal['Content-Length']
224225
if (isSurge()) {
225226
$httpClient.get(url, cb)
226227
}
@@ -230,6 +231,7 @@ function init() {
230231
}
231232
}
232233
post = (url, cb) => {
234+
if (url['headers'].hasOwnProperty('Content-Length')) delete loginlotteryheaderVal['Content-Length']
233235
if (isSurge()) {
234236
$httpClient.post(url, cb)
235237
}

0 commit comments

Comments
 (0)