Skip to content

Commit

Permalink
Added public init for HTTPServerProtocolErrorHandler (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjessup authored and Lukasa committed Nov 23, 2018
1 parent 6f3671d commit ac9e5d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/NIOHTTP1/HTTPServerProtocolErrorHandler.swift
Expand Up @@ -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)
Expand Down

0 comments on commit ac9e5d0

Please sign in to comment.