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