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 6b8beab commit c1cbb85Copy full SHA for c1cbb85
Sources/OpenAPIVapor/VaporTransport.swift
@@ -94,7 +94,7 @@ extension OpenAPIRuntime.HTTPBody {
94
convenience init(_ vaporRequest: Vapor.Request) {
95
let contentLength = vaporRequest.headers.first(name: "content-length").map(Int.init)
96
self.init(
97
- vaporRequest.body.map { HTTPBody.ByteChunk([UInt8](buffer: $0)) },
+ vaporRequest.body.map(\.readableBytesView),
98
length: contentLength?.map { .known($0) } ?? .unknown,
99
iterationBehavior: .single
100
)
0 commit comments