27 lines
1,007 B
Text
27 lines
1,007 B
Text
|
[[!comment format=mdwn
|
||
|
username="http://joeyh.name/"
|
||
|
ip="209.250.56.54"
|
||
|
subject="comment 7"
|
||
|
date="2014-10-06T15:23:59Z"
|
||
|
content="""
|
||
|
Hugo, I didn't write this code, but it looks to me like you could work around the problem by changing line 207 of lib/CommonFunctions.py:
|
||
|
|
||
|
<pre>
|
||
|
diff --git a/lib/CommonFunctions.py b/lib/CommonFunctions.py
|
||
|
index 050b93e..083f5d6 100644
|
||
|
--- a/lib/CommonFunctions.py
|
||
|
+++ b/lib/CommonFunctions.py
|
||
|
@@ -204,7 +204,7 @@ def fetchPage(params={}):
|
||
|
if get(\"progress\"):
|
||
|
data = False
|
||
|
tdata = \"\"
|
||
|
- totalsize = int(con.headers['content-length'])
|
||
|
+ totalsize = 0
|
||
|
chunksize = totalsize / 100
|
||
|
if chunksize < 4096:
|
||
|
chunksize = 4096
|
||
|
</pre>
|
||
|
|
||
|
Probably the API used to return a content-length header, and no longer does, or doesn't do so reliably. It does not seem to be used for anything too important -- this change will break git-annex's progress display a little bit, perhaps.
|
||
|
"""]]
|