ToolController: impl signup
This commit is contained in:
@@ -5,6 +5,7 @@ extension MsgPackEncoder: @retroactive ContentEncoder, @retroactive @unchecked S
|
||||
public func encode<E>(_ encodable: E, to body: inout ByteBuffer, headers: inout HTTPHeaders) throws where E : Encodable {
|
||||
let data = try self.encode(encodable)
|
||||
body.writeString(data.base64EncodedString())
|
||||
headers.contentType = .init(type: "application", subType: "x-msgpack")
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user