diff --git a/apple/OmnivoreKit/Sources/Models/PageScrapePayload.swift b/apple/OmnivoreKit/Sources/Models/PageScrapePayload.swift index 5b6ff9939..edf1baa42 100644 --- a/apple/OmnivoreKit/Sources/Models/PageScrapePayload.swift +++ b/apple/OmnivoreKit/Sources/Models/PageScrapePayload.swift @@ -26,7 +26,7 @@ public struct PageScrapePayload { // If the content type was specified and we know its PDF, use that // otherwise fallback to using file extensions. - if let contentType = contentType, contentType == "application/pdf" { + if let contentType = contentType, contentType.contains("pdf") { self.contentType = .pdf } else { self.contentType = url.hasSuffix(".pdf") ? .pdf : .html