Commit Graph

15 Commits

Author SHA1 Message Date
Tonsofattraction
d009bcdd1b We still need to decode content for ungzipped data
But we have to read more from stream so that we can be sure to receive those 2 bytes we need
2015-08-24 17:22:52 +03:00
Alexey Lavrenuke
58e879c367 Merge pull request #170 from nnugumanov/HEAD_with_content-length
requests.head omits Content-Length
2015-08-24 16:37:42 +03:00
Alexey Lavrenuke
b489154d25 Merge pull request #172 from Tonsofattraction/patch-2
download ammofiles of unknown content-length
2015-08-24 16:27:46 +03:00
Tonsofattraction
098971ba4c download ammofiles of unknown content-length 2015-08-24 15:27:40 +03:00
Tonsofattraction
94fa7b58e4 correct gzip detection
do not decode stream content for binary comparison
2015-08-24 15:12:02 +03:00
Nurlan Nugumanov
c32fe54786 requests.head omits Content-Length and therefore yandex-tank cannot determine the ammofile size and always streams it
https://github.com/kennethreitz/requests/issues/2731
Requests library specifies gzip, deflate as acceptable encodings by default and urllib2 specifies identity by default.
2015-08-20 16:20:47 +03:00
Tonsofattraction
0d4f3edad5 Update util.py
handle 405 for head method
handle 302 for head method
2015-06-29 19:51:12 +03:00
Alexey Lavrenuke
6d87a9ed54 more logging 2015-06-17 19:29:49 +03:00
Tonsofattraction
3055a9099a syntax fix 2015-06-15 16:52:04 +03:00
Tonsofattraction
c18bdaa6fa indent fix
github editor indentations definitely need to be fixed
2015-06-15 16:50:05 +03:00
Tonsofattraction
71629a7936 stupid indents... 2015-06-15 16:35:57 +03:00
Tonsofattraction
f276aeeff8 indent fix 2015-06-15 16:13:06 +03:00
Tonsofattraction
8dffe9d9aa indent fix 2015-06-15 16:07:36 +03:00
Tonsofattraction
95507634d4 Update util.py
fs_opener and gz_opener as well as http_opener have hash and data_length properties 
python-requests dependency used here
2015-06-15 15:44:56 +03:00
Alexey Lavrenuke
dca844bf68 Moving files around 2015-02-03 12:35:48 +03:00