Skip to content

Commit

Permalink
S3 Auth: Fix Authorization header format
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-giguere committed Sep 9, 2024
1 parent 99e9d57 commit 4d27eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth/awss3/core/qgsauthawss3method.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ bool QgsAuthAwsS3Method::updateNetworkRequest( QNetworkRequest &request, const Q
request.setRawHeader( QByteArray( "Host" ), request.url().host().toLocal8Bit() );
request.setRawHeader( QByteArray( "X-Amz-Date" ), dateTime );
request.setRawHeader( QByteArray( "Authorization" ),
encryptionMethod + "Credential=" + username + '/' + date + "/" + region + "/s3/aws4_request, SignedHeaders=" + headerList + ", Signature=" + signature );
encryptionMethod + " Credential=" + username + '/' + date + "/" + region + "/s3/aws4_request, SignedHeaders=" + headerList + ", Signature=" + signature );

return true;
}
Expand Down

0 comments on commit 4d27eba

Please sign in to comment.