diff options
author | http://joeyh.name/ <http://joeyh.name/@web> | 2014-10-06 15:23:59 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2014-10-06 15:23:59 +0000 |
commit | 6719e7f69cf6e149d764e64e623401ad41bc38dd (patch) | |
tree | 4dd776c3ba6a8f9704563022f8b9156a411e72c0 /doc/tips/googledriveannex | |
parent | e97f0c6fe318641b2873d84874fc058d9d2e04a1 (diff) |
Added a comment
Diffstat (limited to 'doc/tips/googledriveannex')
-rw-r--r-- | doc/tips/googledriveannex/comment_7_3a645a0cd1e4c939b7a4b8a97a0e9b03._comment | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/tips/googledriveannex/comment_7_3a645a0cd1e4c939b7a4b8a97a0e9b03._comment b/doc/tips/googledriveannex/comment_7_3a645a0cd1e4c939b7a4b8a97a0e9b03._comment new file mode 100644 index 000000000..970a5e7b5 --- /dev/null +++ b/doc/tips/googledriveannex/comment_7_3a645a0cd1e4c939b7a4b8a97a0e9b03._comment @@ -0,0 +1,26 @@ +[[!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. +"""]] |