List index out of range
bostjan39 opened this issue · 0 comments
Hi, what to do here?
python cacheproxy.py 8001
Cache proxy is listening on port 8001 ...
GET / HTTP/1.1
Host: 127.0.0.1:8001
Connection: keep-alive
Cache-Control: max-age=0
sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="98", "Google Chrome";v="98"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
DNT: 1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9,pt;q=0.8,bs;q=0.7,ru;q=0.6,sl;q=0.5,fr;q=0.4,ja;q=0.3,la;q=0.2,de;q=0.1,pl;q=0.1,sv;q=0.1,zh-CN;q=0.1,zh;q=0.1,da;q=0.1,it;q=0.1,es;q=0.1,hr;q=0.1,tr;q=0.1,cs;q=0.1,nl;q=0.1,lb;q=0.1
Not in cache. Fetching from server.
Traceback (most recent call last):
File "cacheproxy.py", line 117, in
main()
File "cacheproxy.py", line 42, in main
method = top_header[0]
IndexError: list index out of range