Skip to content

Commit

Permalink
close mode output keep-alive (#2257)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 committed Mar 20, 2020
1 parent 57398eb commit 9b007b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Vapor/Server/HTTPServerHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ final class HTTPServerHandler: ChannelInboundHandler, RemovableChannelHandler {
let done = context.write(self.wrapOutboundOut(response))
if !request.isKeepAlive {
done.whenComplete { _ in
context.close(promise: nil)
context.close(mode: .output, promise: nil)
}
}
}
Expand Down

0 comments on commit 9b007b4

Please sign in to comment.