mirror of
https://github.com/NixOS/nix
synced 2025-06-30 03:23:16 +02:00
Make Headers an optional argument
This commit is contained in:
parent
de86abbf3f
commit
5999978a05
9 changed files with 23 additions and 25 deletions
|
@ -66,9 +66,6 @@ struct FileTransferRequest
|
|||
FileTransferRequest(const std::string & uri)
|
||||
: uri(uri), parentAct(getCurActivity()) { }
|
||||
|
||||
FileTransferRequest(const std::string & uri, Headers headers)
|
||||
: uri(uri), headers(headers) { }
|
||||
|
||||
std::string verb()
|
||||
{
|
||||
return data ? "upload" : "download";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue