Now that Swifton defines its own ContentTypes in Response.swift we need to add the missing mime-types in order to return the correct content-type.
Returning a text/plain type causes errors on certain browsers that will only parse a file if it has the expected mime-type:
Now that Swifton defines its own
ContentTypes
inResponse.swift
we need to add the missing mime-types in order to return the correct content-type. Returning atext/plain
type causes errors on certain browsers that will only parse a file if it has the expected mime-type:Here's what needed:
MimeType.swift
ContentType
enum inResponse.swift
Router.swift:38