File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Umbraco.Cms.Integrations.OAuthProxy/Controllers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,10 @@ private HttpClient GetClient(string serviceName)
6363
6464 // Shopify's endpoint (and potentially others in future) for retrieving the access token is directly coupled with the shop's name.
6565 // As a result the address of the client needs to be updated with the request header value for the name of the shop.
66- var serviceAddressReplaceHeader = Request . Headers . FirstOrDefault ( p => p . Key . Contains ( ServiceAddressReplacePrefixHeaderKey ) ) ;
66+ var serviceAddressReplaceHeader = Request . Headers . FirstOrDefault ( p => p . Key . ToLowerInvariant ( ) . Contains ( ServiceAddressReplacePrefixHeaderKey ) ) ;
6767 if ( ! serviceAddressReplaceHeader . Equals ( default ( KeyValuePair < string , StringValues > ) ) && httpClient . BaseAddress != null )
6868 {
69- var replaceKey = serviceAddressReplaceHeader . Key . Replace ( ServiceAddressReplacePrefixHeaderKey , string . Empty ) ;
69+ var replaceKey = serviceAddressReplaceHeader . Key . ToLowerInvariant ( ) . Replace ( ServiceAddressReplacePrefixHeaderKey , string . Empty ) ;
7070
7171 var baseAddress = httpClient . BaseAddress . ToString ( ) . Replace ( $ "{ replaceKey } ", serviceAddressReplaceHeader . Value ) ;
7272 httpClient . BaseAddress = new Uri ( baseAddress ) ;
You can’t perform that action at this time.
0 commit comments