Skip to content

Commit 4dec98c

Browse files
committed
Fix password based authentication for LFS
Codereview - fix formatting spaces -> tabs
1 parent 07e3ddc commit 4dec98c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

p4-fusion/lfs/communication/lfscomm.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ Communicator::UploadResult PerformUpload(const std::string& uploadUrl, const std
390390
uploadHeaders = curl_slist_append(uploadHeaders, "Accept: application/vnd.git-lfs");
391391
}
392392

393-
const Credentials& authToUse = (actionHeaders.find("Authorization") == actionHeaders.end()) ? auth : Credentials();
393+
const Credentials& authToUse = (actionHeaders.find("Authorization") == actionHeaders.end()) ? auth : Credentials();
394394

395395
// Add action-specific headers from the batch response
396396
uploadHeaders = CreateHeadersFromMap(actionHeaders, uploadHeaders);
@@ -453,7 +453,7 @@ bool PerformVerify(const std::string& verifyUrl, const std::string& oid, size_t
453453
// Add action-specific headers from the batch response
454454
verifyHeaders = CreateHeadersFromMap(actionHeaders, verifyHeaders);
455455

456-
const Credentials& authToUse = (actionHeaders.find("Authorization") == actionHeaders.end()) ? auth : Credentials();
456+
const Credentials& authToUse = (actionHeaders.find("Authorization") == actionHeaders.end()) ? auth : Credentials();
457457

458458
RequestResult verifyResult = {};
459459
SetupRequest(curl.get(), verifyUrl, verifyPayload.data(), verifyPayload.size(), verifyHeaders, &verifyResult, authToUse);

0 commit comments

Comments
 (0)