diff --git a/Package.swift b/Package.swift index 5f6332442..02b4c67c3 100644 --- a/Package.swift +++ b/Package.swift @@ -19,7 +19,7 @@ let package = Package( .package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.4.0"), .package(url: "https://github.com/swift-server/async-http-client.git", from: "1.2.0"), .package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "1.0.0-alpha.6"), - .package(url: "https://github.com/hummingbird-project/hummingbird-core.git", from: "0.2.0"), + .package(url: "https://github.com/hummingbird-project/hummingbird-core.git", from: "0.3.0"), ], targets: [ .target(name: "CURLParser", dependencies: []), diff --git a/Sources/Hummingbird/Server/Application+HTTPResponder.swift b/Sources/Hummingbird/Server/Application+HTTPResponder.swift index 16f25c5a6..c21c8d253 100644 --- a/Sources/Hummingbird/Server/Application+HTTPResponder.swift +++ b/Sources/Hummingbird/Server/Application+HTTPResponder.swift @@ -49,7 +49,7 @@ extension HBApplication { request.logger.error("\(error)") // then convert to valid response so this isn't treated as an error further down let response: HBHTTPResponse - if let error = error as? HBHTTPErrorResponse { + if let error = error as? HBHTTPResponseError { response = error.response(version: request.version, allocator: request.allocator) } else { response = HBHTTPResponse(