Skip to content

Commit

Permalink
Compress JSON rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
enums committed Mar 7, 2021
1 parent a65c2ce commit 0818319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Heze/View/HezeResponsable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ extension Array: HezeResponsable where Element == UInt8 {
extension JSON: HezeResponsable {

public func setBody(for res: HTTPResponse) {
self.rawString()?.setBody(for: res)
self.rawString(.utf8, options: .init(rawValue: 0))?.setBody(for: res)
}
}

0 comments on commit 0818319

Please sign in to comment.