diff --git a/InventoryWatch.xcodeproj/project.pbxproj b/InventoryWatch.xcodeproj/project.pbxproj index 517016b..a221d28 100644 --- a/InventoryWatch.xcodeproj/project.pbxproj +++ b/InventoryWatch.xcodeproj/project.pbxproj @@ -403,7 +403,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 11.5; - MARKETING_VERSION = 0.2.1; + MARKETING_VERSION = 0.2.2; PRODUCT_BUNDLE_IDENTIFIER = com.worthbak.InventoryWatch; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; @@ -435,7 +435,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 11.5; - MARKETING_VERSION = 0.2.1; + MARKETING_VERSION = 0.2.2; PRODUCT_BUNDLE_IDENTIFIER = com.worthbak.InventoryWatch; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; diff --git a/InventoryWatch/Model/FulfillmentModel.swift b/InventoryWatch/Model/FulfillmentModel.swift index 52561ff..92ceaac 100644 --- a/InventoryWatch/Model/FulfillmentModel.swift +++ b/InventoryWatch/Model/FulfillmentModel.swift @@ -75,10 +75,13 @@ actor FulfillmentModel { throw AppError.couldNotGenerateURL } + var request = URLRequest(url: url) + request.addValue("https://www.apple.com/shop/buy-iphone/", forHTTPHeaderField: "Referer") + // Log the URL for debugging print(url.absoluteString) - let (data, response) = try await URLSession.shared.data(from: url) + let (data, response) = try await URLSession.shared.data(for: request) return try await parseStoreResponse(data, response: response as? HTTPURLResponse, filterForModels: modelParsingFilter) } diff --git a/docs/InventoryWatch-0.2.1.zip b/docs/InventoryWatch-0.2.1.zip deleted file mode 100644 index 66115f7..0000000 Binary files a/docs/InventoryWatch-0.2.1.zip and /dev/null differ diff --git a/docs/InventoryWatch-0.2.2.zip b/docs/InventoryWatch-0.2.2.zip new file mode 100644 index 0000000..8548504 Binary files /dev/null and b/docs/InventoryWatch-0.2.2.zip differ diff --git a/docs/index.md b/docs/index.md index c519eeb..0fb799b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,4 +1,4 @@ -## [Download InventoryWatch (0.2.1) Now ⤵️](./InventoryWatch-0.2.1.zip) +## [Download InventoryWatch (0.2.2) Now ⤵️](./InventoryWatch-0.2.2.zip) ![InventoryWatch-Screenshot](./ic-mkt.jpg) @@ -68,4 +68,4 @@ macOS Big Sur 11.5 or newer. InventoryWatch is built with SwiftUI. ## Ready to go? -[Download InventoryWatch (0.2.1) Now ⤵️](./InventoryWatch-0.2.1.zip) +[Download InventoryWatch (0.2.2) Now ⤵️](./InventoryWatch-0.2.2.zip)