We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb7d9c2 commit ff768b2Copy full SHA for ff768b2
Sources/ComposableArchitecturePattern/Server+API.swift
@@ -74,7 +74,11 @@ public extension ServerAPI {
74
}
75
76
request.httpMethod = httpMethod.rawValue
77
- request.httpBody = try self._encodedData(httpBody)
+ if let httpBody {
78
+ request.httpBody = try self._encodedData(httpBody)
79
+ } else if let body {
80
+ request.httpBody = try self._encodedData(body)
81
+ }
82
83
return request
84
0 commit comments