Skip to content

Commit

Permalink
fix layout
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored and nyalldawson committed Sep 12, 2024
1 parent 6a5377d commit 416f3ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/auth/awss3/core/qgsauthawss3method.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ bool QgsAuthAwsS3Method::updateNetworkRequest( QNetworkRequest &request, const Q
QCryptographicHash::Sha256 );

const QByteArray signature = QMessageAuthenticationCode::hash( stringToSign, signingKey, QCryptographicHash::Sha256 ).toHex();
const QByteArray authorizationHeader = QString("%1 Credential=%2/%3/%4/s3/aws4_request, SignedHeaders=%5, Signature=%6")
.arg(encryptionMethod, username, date, region, headerList, signature)
.toUtf8();
const QByteArray authorizationHeader = QString( "%1 Credential=%2/%3/%4/s3/aws4_request, SignedHeaders=%5, Signature=%6" )
.arg( encryptionMethod, username, date, region, headerList, signature )
.toUtf8();

request.setRawHeader( QByteArray( "Host" ), request.url().host().toUtf8() );
request.setRawHeader( QByteArray( "X-Amz-Date" ), dateTime );
Expand Down

0 comments on commit 416f3ae

Please sign in to comment.