We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8301df commit 1169214Copy full SHA for 1169214
FlyingFox/Sources/Handlers/FileHTTPHandler.swift
@@ -65,6 +65,8 @@ public struct FileHTTPHandler: HTTPHandler {
65
return "image/jpeg"
66
case "pdf":
67
return "application/pdf"
68
+ case "svg":
69
+ return "image/svg+xml"
70
default:
71
return "application/octet-stream"
72
}
FlyingFox/Tests/Handlers/HTTPHandlerTests.swift
@@ -141,6 +141,10 @@ final class HTTPHandlerTests: XCTestCase {
141
FileHTTPHandler.makeContentType(for: "fish.pdf"),
142
"application/pdf"
143
)
144
+ XCTAssertEqual(
145
+ FileHTTPHandler.makeContentType(for: "fish.svg"),
146
+ "image/svg+xml"
147
+ )
148
XCTAssertEqual(
149
FileHTTPHandler.makeContentType(for: "fish.somefile"),
150
"application/octet-stream"
0 commit comments