Skip to content

Commit

Permalink
Correctly set Content-Type when serving OpenAPI definition (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
djones6 authored Jan 24, 2019
1 parent dd796a8 commit a5f5007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/KituraOpenAPI/KituraOpenAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class KituraOpenAPI {
return
}

response.headers.setType("application/json")
response.headers.setType("json")
response.status(.OK)
try response.send(json).end()
}
Expand Down

0 comments on commit a5f5007

Please sign in to comment.