| Index: libcurl_http_fetcher.cc
|
| diff --git a/libcurl_http_fetcher.cc b/libcurl_http_fetcher.cc
|
| index a07a8256b428dd31e4ec89a2888b7fa4d7784c0d..9989ba266bde273075359f2fd529fe4b11493be6 100644
|
| --- a/libcurl_http_fetcher.cc
|
| +++ b/libcurl_http_fetcher.cc
|
| @@ -78,6 +78,7 @@ void LibcurlHttpFetcher::BeginTransfer(const std::string& url) {
|
| bytes_downloaded_ = 0;
|
| resume_offset_ = 0;
|
| retry_count_ = 0;
|
| + http_response_code_ = 0;
|
| ResumeTransfer(url);
|
| CurlPerformOnce();
|
| }
|
| @@ -105,6 +106,7 @@ void LibcurlHttpFetcher::CurlPerformOnce() {
|
| } else {
|
| LOG(ERROR) << "Unable to get http response code.";
|
| }
|
| + http_response_code_ = static_cast<int>(http_response_code);
|
|
|
| // we're done!
|
| CleanUp();
|
|
|