@shopify/cli-kit 3.45.2 → 3.45.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,13 +21,11 @@ module ShopifyCLI
21
21
 
22
22
  # Proxy the request, and replace the URLs in the response
23
23
  status, headers, body = @app.call(env)
24
- # Use Rack::Response to get the content type header regardless of case
25
- response = Rack::Response.new(nil, status, headers)
26
- content_type = response.get_header("Content-Type")
24
+ content_type = headers["Content-Type"] || headers["content-type"]
27
25
  if content_type.nil? || content_type == "" || content_type&.start_with?("text/")
28
- Rack::Response.new(replace_font_urls(body), status, headers).finish
26
+ [status, headers, replace_font_urls(body)]
29
27
  else
30
- Rack::Response.new(body, status, headers).finish
28
+ [status, headers, body]
31
29
  end
32
30
  end
33
31
 
@@ -1 +1 @@
1
- export declare const CLI_KIT_VERSION = "3.45.2";
1
+ export declare const CLI_KIT_VERSION = "3.45.3";
@@ -1,2 +1,2 @@
1
- export const CLI_KIT_VERSION = '3.45.2';
1
+ export const CLI_KIT_VERSION = '3.45.3';
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/public/common/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAA","sourcesContent":["export const CLI_KIT_VERSION = '3.45.2'\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/public/common/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAA","sourcesContent":["export const CLI_KIT_VERSION = '3.45.3'\n"]}