Skip to content

Commit

Permalink
Expose acceptableImageContentTypes
Browse files Browse the repository at this point in the history
I have had reasons to access this list directly.
Exposing a readonly getter should be safe for any use cases.
  • Loading branch information
lickel committed Jan 27, 2022
1 parent af1c416 commit 70cdeb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Request+AlamofireImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public final class ImageResponseSerializer: ResponseSerializer {
public let emptyResponseCodes: Set<Int>
public let emptyRequestMethods: Set<HTTPMethod>

static var acceptableImageContentTypes: Set<String> = {
public internal(set) static var acceptableImageContentTypes: Set<String> = {
var contentTypes: Set<String> = ["application/octet-stream",
"image/tiff",
"image/jpg",
Expand Down

0 comments on commit 70cdeb7

Please # to comment.