Skip to content

Commit 9389c93

Browse files
committed
temporary fix for local dev
1 parent b2836db commit 9389c93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/shopify_api/clients/http_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def initialize(base_path:, session: nil)
2525
"Accept": "application/json",
2626
}, T::Hash[T.any(Symbol, String), T.untyped])
2727

28-
@headers["Host"] = session.shop unless api_host.nil?
28+
@headers["Host"] = api_host || session.shop unless api_host.nil?
2929

3030
unless session.access_token.nil? || T.must(session.access_token).empty?
3131
@headers["X-Shopify-Access-Token"] = T.cast(session.access_token, String)

0 commit comments

Comments
 (0)