fix web_seed_chunked test

This commit is contained in:
Arvid Norberg 2013-11-04 21:08:19 +00:00
parent c147caca0d
commit 5d149e2d0a
2 changed files with 4 additions and 7 deletions

View File

@ -43,13 +43,10 @@ int test_main()
int ret = 0;
for (int url_seed = 0; url_seed < 2; ++url_seed)
{
for (int ban = 0; ban < 2; ++ban)
{
#ifdef TORRENT_USE_OPENSSL
run_http_suite(proxy, "https", url_seed, 1, ban);
run_http_suite(proxy, "https", url_seed, 1, 0);
#endif
run_http_suite(proxy, "http", url_seed, 1, ban);
}
run_http_suite(proxy, "http", url_seed, 1, 0);
}
return ret;
}

View File

@ -74,7 +74,7 @@ class http_handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
s.end_headers()
s.wfile.write(data);
except Exception, e:
print 'FILE NOT FOUND: ', e
print 'FILE NOT FOUND: ', os.getcwd(), filename
s.send_response(404)
s.send_header("Content-Length", "0")
s.end_headers()
@ -124,7 +124,7 @@ class http_handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
if chunked_encoding:
s.wfile.write('0\r\n\r\n')
except Exception, e:
print 'FILE NOT FOUND: ', e
print 'FILE NOT FOUND: ', os.getcwd(), e
s.send_response(404)
s.send_header("Content-Length", "0")
s.end_headers()