We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04d4ed3 commit c67e336Copy full SHA for c67e336
Tests/AsyncHTTPClientTests/HTTP2ClientTests.swift
@@ -379,7 +379,10 @@ private final class SendHeaderAndWaitChannelHandler: ChannelInboundHandler {
379
typealias OutboundOut = HTTPServerResponsePart
380
381
func channelRead(context: ChannelHandlerContext, data: NIOAny) {
382
- context.writeAndFlush(wrapOutboundOut(.head(HTTPResponseHead(
+ let requestPart = self.unwrapInboundIn(data)
383
+ guard case .end = requestPart else { return }
384
+
385
+ context.writeAndFlush(self.wrapOutboundOut(.head(HTTPResponseHead(
386
version: HTTPVersion(major: 1, minor: 1),
387
status: .ok
388
))
0 commit comments