A fetch-like polyfill for userscript managers.(TM,GM,VM)
< Commentaires sur gmxhr-fetch
`Accept-Ranges: bytesConnection: keep-aliveContent-Length: 88Content-Type: application/json;charset=UTF-8Date: Tue, 08 Dec 2020 07:50:22 GMTExpires: Thu, 01 Jan 1970 00:00:00 GMTServer: openrestySet-Cookie: SESSION=ca0084d7192c433cbb23e7825379e3ba;Path=/;HttpOnlySet-Cookie: remember-me=;Version=1;Path=/;Expires=Thu, 01-Jan-1970 00:00:00 GMT;Max-Age=0X-CCDN-CacheTTL: 0X-CCDN-Origin-Time: 21via: 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=/;HttpOnlySet-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']
Connectez-vous pour poster une réponse.
`
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'
]