Skip to content

Commit 6c86ba7

Browse files
committed
Update Sec-Purpose to Shopify-Purpose
1 parent 714434d commit 6c86ba7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

ShopifyCheckoutSheetKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Pod::Spec.new do |s|
2-
s.version = "3.3.0"
2+
s.version = "3.3.1"
33

44
s.name = "ShopifyCheckoutSheetKit"
55
s.summary = "Enables Swift apps to embed the Shopify's highest converting, customizable, one-page checkout."

Sources/ShopifyCheckoutSheetKit/CheckoutWebView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class CheckoutWebView: WKWebView {
228228

229229
if isPreload && isPreloadingAvailable {
230230
isPreloadRequest = true
231-
request.setValue("prefetch", forHTTPHeaderField: "Sec-Purpose")
231+
request.setValue("prefetch", forHTTPHeaderField: "Shopify-Purpose")
232232
}
233233

234234
load(request)

Sources/ShopifyCheckoutSheetKit/ShopifyCheckoutSheetKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SO
2424
import UIKit
2525

2626
/// The version of the `ShopifyCheckoutSheetKit` library.
27-
public let version = "3.2.0"
27+
public let version = "3.3.1"
2828

2929
internal var invalidateOnConfigurationChange = true
3030

Tests/ShopifyCheckoutSheetKitTests/CheckoutWebViewTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ class CheckoutWebViewTests: XCTestCase {
358358
isPreload: true
359359
)
360360

361-
let secPurposeHeader = webView.lastLoadedURLRequest?.value(forHTTPHeaderField: "Sec-Purpose")
361+
let secPurposeHeader = webView.lastLoadedURLRequest?.value(forHTTPHeaderField: "Shopify-Purpose")
362362
XCTAssertEqual(secPurposeHeader, "prefetch")
363363
}
364364

@@ -370,7 +370,7 @@ class CheckoutWebViewTests: XCTestCase {
370370
isPreload: false
371371
)
372372

373-
let secPurposeHeader = webView.lastLoadedURLRequest?.value(forHTTPHeaderField: "Sec-Purpose")
373+
let secPurposeHeader = webView.lastLoadedURLRequest?.value(forHTTPHeaderField: "Shopify-Purpose")
374374
XCTAssertEqual(secPurposeHeader, nil)
375375
XCTAssertFalse(webView.isPreloadRequest)
376376
}

0 commit comments

Comments
 (0)