@@ -113,8 +113,15 @@ internal string GetPreSignedURLInternal(GetPreSignedUrlRequest request)
113
113
var immutableCredentials = credentials . GetCredentials ( ) ;
114
114
var irequest = Marshall ( this . Config , request , immutableCredentials . AccessKey , immutableCredentials . Token , signatureVersionToUse ) ;
115
115
116
- var context = new Amazon . Runtime . Internal . ExecutionContext ( new Amazon . Runtime . Internal . RequestContext ( true , new NullSigner ( ) ) { Request = irequest , ClientConfig = this . Config } , null ) ;
117
-
116
+ var context = new Amazon . Runtime . Internal . ExecutionContext (
117
+ new RequestContext ( true , new NullSigner ( ) )
118
+ {
119
+ Request = irequest ,
120
+ ClientConfig = this . Config ,
121
+ OriginalRequest = request ,
122
+ } ,
123
+ null
124
+ ) ;
118
125
new AmazonS3EndpointResolver ( ) . ProcessRequestHandlers ( context ) ;
119
126
var expressConfig = this . Config as AmazonS3Config ;
120
127
if ( context . RequestContext . Request . IsDirectoryBucket ( ) && ! expressConfig . DisableS3ExpressSessionAuth )
@@ -176,8 +183,15 @@ internal async Task<string> GetPreSignedURLInternalAsync(GetPreSignedUrlRequest
176
183
var immutableCredentials = await credentials . GetCredentialsAsync ( ) . ConfigureAwait ( false ) ;
177
184
var irequest = Marshall ( this . Config , request , immutableCredentials . AccessKey , immutableCredentials . Token , signatureVersionToUse ) ;
178
185
179
-
180
- var context = new Amazon . Runtime . Internal . ExecutionContext ( new Amazon . Runtime . Internal . RequestContext ( true , new NullSigner ( ) ) { Request = irequest , ClientConfig = this . Config } , null ) ;
186
+ var context = new Amazon . Runtime . Internal . ExecutionContext (
187
+ new RequestContext ( true , new NullSigner ( ) )
188
+ {
189
+ Request = irequest ,
190
+ ClientConfig = this . Config ,
191
+ OriginalRequest = request ,
192
+ } ,
193
+ null
194
+ ) ;
181
195
new AmazonS3EndpointResolver ( ) . ProcessRequestHandlers ( context ) ;
182
196
var expressConfig = this . Config as AmazonS3Config ;
183
197
if ( context . RequestContext . Request . IsDirectoryBucket ( ) && ! expressConfig . DisableS3ExpressSessionAuth )
0 commit comments