filetransfer: restore http status line reporting
this was broken in 75b62e5260
.
Change-Id: If8583e802afbcde822623036bf41a9708fbc7c8d
This commit is contained in:
parent
38442e3123
commit
5e69f8aa3d
1 changed files with 2 additions and 2 deletions
|
@ -456,8 +456,8 @@ struct curlFileTransfer : public FileTransfer
|
|||
: httpStatus != 0
|
||||
? FileTransferError(err,
|
||||
std::move(response),
|
||||
"unable to %s '%s': HTTP error %d%s",
|
||||
request.verb(), request.uri, httpStatus,
|
||||
"unable to %s '%s': HTTP error %d (%s)%s",
|
||||
request.verb(), request.uri, httpStatus, statusMsg,
|
||||
code == CURLE_OK ? "" : fmt(" (curl error: %s)", curl_easy_strerror(code)))
|
||||
: FileTransferError(err,
|
||||
std::move(response),
|
||||
|
|
Loading…
Reference in a new issue