Skip to content

Commit

Permalink
Fix: Parser now raises IO::EOFError instead of Parser::EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden committed Sep 29, 2015
1 parent fa4ccc3 commit 349aac8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/prax/parser.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module Prax
HEADER_RE = /([^:]+):\s+(.+)/

class InvalidRequest < Exception; end
class EOF < InvalidRequest; end

def initialize(@socket)
end
Expand Down
2 changes: 1 addition & 1 deletion src/prax/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module Prax
debug_exception(ex)
end

rescue ex : Parser::EOF
rescue ex : IO::EOFError
# silence

rescue ex
Expand Down

0 comments on commit 349aac8

Please sign in to comment.