Merge lp:~michael-sheldon/ubuntu-download-manager/fix-content-length-detection into lp:ubuntu-download-manager

Proposed by Michael Sheldon
Status: Merged
Approved by: Bill Filler
Approved revision: 343
Merged at revision: 343
Proposed branch: lp:~michael-sheldon/ubuntu-download-manager/fix-content-length-detection
Merge into: lp:ubuntu-download-manager
Diff against target: 11 lines (+1/-0)
1 file modified
src/downloads/priv/ubuntu/downloads/file_download.cpp (+1/-0)
To merge this branch: bzr merge lp:~michael-sheldon/ubuntu-download-manager/fix-content-length-detection
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Ubuntu Phablet Team Pending
Review via email: mp+281293@code.launchpad.net

Commit message

Recalculate the total download size after a redirection

Description of the change

Recalculate the total download size after a redirection

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/downloads/priv/ubuntu/downloads/file_download.cpp'
2--- src/downloads/priv/ubuntu/downloads/file_download.cpp 2015-11-13 14:40:50 +0000
3+++ src/downloads/priv/ubuntu/downloads/file_download.cpp 2015-12-23 13:39:57 +0000
4@@ -595,6 +595,7 @@
5 }
6 _reply = _requestFactory->get(buildRequest());
7 _reply->setReadBufferSize(throttle());
8+ _totalSize = 0;
9
10 connectToReplySignals();
11 }

Subscribers

People subscribed via source and target branches