Skip to content

Commit

Permalink
Merge pull request #77 from open-swift/fix-stack-over-flow
Browse files Browse the repository at this point in the history
fix stack over flow with self recursion
  • Loading branch information
noppoMan authored Aug 11, 2016
2 parents edeb739 + 84c2258 commit 149d731
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/AsyncResponder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public struct BasicAsyncResponder: AsyncResponder {
}

public func respond(to request: Request, result: @escaping ((Void) throws -> Response) -> Void) {
return self.respond(to: request, result: result)
return self.respond(request, result)
}
}
2 changes: 1 addition & 1 deletion Sources/Responder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ public struct BasicResponder: Responder {
}

public func respond(to request: Request) throws -> Response {
return try self.respond(to: request)
return try self.respond(request)
}
}

0 comments on commit 149d731

Please sign in to comment.