Skip to content

Commit e200204

Browse files
authored
Update 10010.js
1 parent c66afb3 commit e200204

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎10010/10010.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ function init() {
222222
log = (message) => console.log(message)
223223
get = (url, cb) => {
224224
console.log(url)
225-
if (url.hasOwnProperty['headers'] && url['headers'].hasOwnProperty('Content-Length')) delete url['headers']['Content-Length']
225+
if (url.hasOwnProperty['headers'] && url['headers'].hasOwnProperty('Content-Length')) {
226+
delete url['headers']['Content-Length']
227+
console.log("66666666666")
228+
}
226229
if (isSurge()) {
227230
$httpClient.get(url, cb)
228231
}
@@ -232,7 +235,7 @@ function init() {
232235
}
233236
}
234237
post = (url, cb) => {
235-
if (url.hasOwnProperty['headers'] && url['headers'].hasOwnProperty('Content-Length')) delete url['headers']['Content-Length']
238+
// if (url.hasOwnProperty['headers'] && url['headers'].hasOwnProperty('Content-Length')) delete url['headers']['Content-Length']
236239
if (isSurge()) {
237240
$httpClient.post(url, cb)
238241
}

0 commit comments

Comments
 (0)