diff --git a/Source/Network/Implement/Client/JSONClient.swift b/Source/Network/Implement/Client/JSONClient.swift index 86c230c..57d4a5e 100644 --- a/Source/Network/Implement/Client/JSONClient.swift +++ b/Source/Network/Implement/Client/JSONClient.swift @@ -38,6 +38,10 @@ extension JSONClient { timeout: Interval? = nil, optionBlock: (inout URLRequest) -> Void = { _ in } ) -> Promise, Error> { + let header = header.merging([ + "Content-Type": "application/json" + ]) { _, new in new } + var bodyData: Data? = nil if let body { guard let body = try? body.datafy() else {