gmxhr-fetch

A fetch-like polyfill for userscript managers.(TM,GM,VM)

< Commentaires sur gmxhr-fetch

Avis: Bon - le script fonctionne correctement

§
Posté le: 2020-12-08

`
Accept-Ranges: bytes
Connection: keep-alive
Content-Length: 88
Content-Type: application/json;charset=UTF-8
Date: Tue, 08 Dec 2020 07:50:22 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Server: openresty
Set-Cookie: SESSION=ca0084d7192c433cbb23e7825379e3ba;Path=/;HttpOnly
Set-Cookie: remember-me=;Version=1;Path=/;Expires=Thu, 01-Jan-1970 00:00:00 GMT;Max-Age=0
X-CCDN-CacheTTL: 0
X-CCDN-Origin-Time: 21
via: CHN-FJquanzhou-AREACT1-CACHE13[147],CHN-FJquanzhou-AREACT1-CACHE44[144,TCP_MISS,144],CHN-SH-GLOBAL1-CACHE119[62],CHN-SH-GLOBAL1-CACHE82[60,TCP_MISS,61],CHN-GDguangzhou-GLOBAL5-CACHE48[23],CHN-GDguangzhou-GLOBAL5-CACHE69[21,TCP_MISS,21]
x-hcs-proxy-type: 0
`
两个Set-Cookie,只存在最后一条,应该转换成array才对
Set-Cookie: SESSION=ca0084d7192c433cbb23e7825379e3ba;Path=/;HttpOnly
Set-Cookie: remember-me=;Version=1;Path=/;Expires=Thu, 01-Jan-1970 00:00:00 GMT;Max-Age=0

====>
Set-Cookie:[
'SESSION=ca0084d7192c433cbb23e7825379e3ba;Path=/;HttpOnly',
'remember-me=;Version=1;Path=/;Expires=Thu, 01-Jan-1970 00:00:00 GMT;Max-Age=0'
]

Poster une réponse

Connectez-vous pour poster une réponse.