From ac9e5d02ac8bdb2d137f36c7abb8eed9239091f3 Mon Sep 17 00:00:00 2001 From: Kyle Jessup Date: Fri, 23 Nov 2018 10:29:09 -0500 Subject: [PATCH] Added public init for HTTPServerProtocolErrorHandler (#660) --- Sources/NIOHTTP1/HTTPServerProtocolErrorHandler.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/NIOHTTP1/HTTPServerProtocolErrorHandler.swift b/Sources/NIOHTTP1/HTTPServerProtocolErrorHandler.swift index 6d8581dd26..4cc7db3ba1 100644 --- a/Sources/NIOHTTP1/HTTPServerProtocolErrorHandler.swift +++ b/Sources/NIOHTTP1/HTTPServerProtocolErrorHandler.swift @@ -29,6 +29,8 @@ public final class HTTPServerProtocolErrorHandler: ChannelDuplexHandler { private var hasUnterminatedResponse: Bool = false + public init() {} + public func errorCaught(ctx: ChannelHandlerContext, error: Error) { guard error is HTTPParserError else { ctx.fireErrorCaught(error)