Closed david-spaeth closed 3 years ago
I try load a Jpeg200 image. The content-type of response is image/jp2
image/jp2
A succes operation without need to call Data Request.addAcceptableImage ContentTypes(Set<String>(["image/jp2"]))
Data Request.addAcceptableImage ContentTypes(Set<String>(["image/jp2"]))
A failure with :
failure : AFError ▿ responseValidationFailed : 1 element ▿ reason : ResponseValidationFailureReason ▿ unacceptableContentType : 2 elements ▿ acceptableContentTypes : 11 elements - 0 : "image/png" - 1 : "image/x-xbitmap" - 2 : "image/tiff" - 3 : "image/gif" - 4 : "image/x-icon" - 5 : "image/x-bmp" - 6 : "image/bmp" - 7 : "image/x-win-bitmap" - 8 : "image/x-ms-bmp" - 9 : "image/jpeg" - 10 : "image/ico" - responseContentType : "image/jp2"
Alamofire version: 3.6.0 Xcode version: 12.0 Swift version: 5.2 Platform(s) running AlamofireImage: macOS version running Xcode: 10.15.6
This has been released as part of 4.2.0.
What did you do?
I try load a Jpeg200 image. The content-type of response is
image/jp2
What did you expect to happen?
A succes operation without need to call
Data Request.addAcceptableImage ContentTypes(Set<String>(["image/jp2"]))
What happened instead?
A failure with :
Alamofire Environment
Alamofire version: 3.6.0 Xcode version: 12.0 Swift version: 5.2 Platform(s) running AlamofireImage: macOS version running Xcode: 10.15.6