ChangbaDevs / KTVHTTPCache

A powerful media cache framework.
MIT License
2.35k stars 435 forks source link

请问 如果请求的http链接带有token和其他参数需要怎么处理 #89

Closed seulYang closed 5 years ago

seulYang commented 5 years ago

已试过添加白名单和additional header 还是不好用 抱歉url不能贴出来,这是由于证书导致的问题吗 Headers : { "CF-RAY" = "47f1092695c76fc6-SIN"; "Content-Length" = 43; "Content-Type" = "application/json; charset=utf-8"; Date = "Sun, 25 Nov 2018 03:30:17 GMT"; "Proxy-Connection" = "keep-alive"; Server = cloudflare; "x-content-type-options" = nosniff; "x-download-options" = noopen; "x-frame-options" = SAMEORIGIN; "x-readtime" = 0; "x-xss-protection" = "1; mode=block"; } headersWithoutRangeAndLength : { "CF-RAY" = "47f1092695c76fc6-SIN"; "Content-Type" = "application/json; charset=utf-8"; Date = "Sun, 25 Nov 2018 03:30:17 GMT"; "Proxy-Connection" = "keep-alive"; Server = cloudflare; "x-content-type-options" = nosniff; "x-download-options" = noopen; "x-frame-options" = SAMEORIGIN; "x-readtime" = 0; "x-xss-protection" = "1; mode=block"; } contentType : application/json; charset=utf-8 totalLength : 0 currentLength : 43 2018-11-25 10:30:12.128767+0700[71209:2849908] KTVHCDownload : 0x600000933560, Receive response request : <KTVHCDataRequest: 0x600002d74630> response : <KTVHCDataResponse: 0x6000001081e0> HTTPResponse : { "CF-RAY" = "47f1092695c76fc6-SIN"; "Content-Length" = 43; "Content-Type" = "application/json; charset=utf-8"; Date = "Sun, 25 Nov 2018 03:30:17 GMT"; "Proxy-Connection" = "keep-alive"; Server = cloudflare; "x-content-type-options" = nosniff; "x-download-options" = noopen; "x-frame-options" = SAMEORIGIN; "x-readtime" = 0; "x-xss-protection" = "1; mode=block"; }

KTVHCDownload : 0x600000933560, Invaild response Error : Error Domain=KTVHTTPCache error Code=-192700 "(null)" UserInfo={KTVHCErrorUserInfoKeyRequest=<NSURLRequest: 0x600002010d90> { URL: }, KTVHCErrorUserInfoKeyURL KTVHCErrorUserInfoKeyResponse=<NSHTTPURLResponse: 0x6000022bfd40> { URL: } { Status Code: 403, Headers { "CF-RAY" = ( "47f1092695c76fc6-SIN" ); "Content-Length" = ( 43 ); "Content-Type" = ( "application/json; charset=utf-8" ); Date = ( "Sun, 25 Nov 2018 03:30:17 GMT" ); "Proxy-Connection" = ( "keep-alive" ); Server = ( cloudflare ); "x-content-type-options" = ( nosniff ); "x-download-options" = ( noopen ); "x-frame-options" = ( SAMEORIGIN ); "x-readtime" = ( 0 ); "x-xss-protection" = ( "1; mode=block" ); } }}