fix web_seed_chunked test
This commit is contained in:
parent
c147caca0d
commit
5d149e2d0a
|
@ -43,13 +43,10 @@ int test_main()
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
for (int url_seed = 0; url_seed < 2; ++url_seed)
|
for (int url_seed = 0; url_seed < 2; ++url_seed)
|
||||||
{
|
{
|
||||||
for (int ban = 0; ban < 2; ++ban)
|
|
||||||
{
|
|
||||||
#ifdef TORRENT_USE_OPENSSL
|
#ifdef TORRENT_USE_OPENSSL
|
||||||
run_http_suite(proxy, "https", url_seed, 1, ban);
|
run_http_suite(proxy, "https", url_seed, 1, 0);
|
||||||
#endif
|
#endif
|
||||||
run_http_suite(proxy, "http", url_seed, 1, ban);
|
run_http_suite(proxy, "http", url_seed, 1, 0);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,7 @@ class http_handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
||||||
s.end_headers()
|
s.end_headers()
|
||||||
s.wfile.write(data);
|
s.wfile.write(data);
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print 'FILE NOT FOUND: ', e
|
print 'FILE NOT FOUND: ', os.getcwd(), filename
|
||||||
s.send_response(404)
|
s.send_response(404)
|
||||||
s.send_header("Content-Length", "0")
|
s.send_header("Content-Length", "0")
|
||||||
s.end_headers()
|
s.end_headers()
|
||||||
|
@ -124,7 +124,7 @@ class http_handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
||||||
if chunked_encoding:
|
if chunked_encoding:
|
||||||
s.wfile.write('0\r\n\r\n')
|
s.wfile.write('0\r\n\r\n')
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print 'FILE NOT FOUND: ', e
|
print 'FILE NOT FOUND: ', os.getcwd(), e
|
||||||
s.send_response(404)
|
s.send_response(404)
|
||||||
s.send_header("Content-Length", "0")
|
s.send_header("Content-Length", "0")
|
||||||
s.end_headers()
|
s.end_headers()
|
||||||
|
|
Loading…
Reference in New Issue