diff options
author | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-06-16 15:14:11 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-17 22:16:24 +0000 |
commit | a835c740ca67e063fe47e7c31444b7c1cac0fe81 (patch) | |
tree | b5714a40ff7c08bf6b3c83a62a03bbda27f80d58 /src/libstore | |
parent | 289b9b8dcf8dc651c2d245d9328911f7addd1626 (diff) |
Replace `TransferItem::status` with a local variable
Everywhere seems to use `getHTTPStatus` now.
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/filetransfer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/filetransfer.cc b/src/libstore/filetransfer.cc index 531b85af8..9566e0ae9 100644 --- a/src/libstore/filetransfer.cc +++ b/src/libstore/filetransfer.cc @@ -56,7 +56,6 @@ struct curlFileTransfer : public FileTransfer Callback<FileTransferResult> callback; CURL * req = 0; bool active = false; // whether the handle has been added to the multi object - std::string status; unsigned int attempt = 0; @@ -175,6 +174,7 @@ struct curlFileTransfer : public FileTransfer size_t realSize = size * nmemb; std::string line((char *) contents, realSize); printMsg(lvlVomit, format("got header for '%s': %s") % request.uri % trim(line)); + std::string status; if (line.compare(0, 5, "HTTP/") == 0) { // new response starts result.etag = ""; auto ss = tokenizeString<vector<string>>(line, " "); |