Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow for error messages that have line numbers

  • Loading branch information...
commit d5e803ed310e2b993a195760153960c4529c04e7 1 parent 2d18b7f
@athomason athomason authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Twiggy/Server.pm
View
4 lib/Twiggy/Server.pm
@@ -160,7 +160,7 @@ sub _accept_handler {
1;
}) {
- $self->_bad_request($sock) unless $@ eq 'client disconnected';
+ $self->_bad_request($sock) unless $@ =~ /^client disconnected/;
}
};
}
@@ -217,7 +217,7 @@ sub _create_req_parsing_watcher {
} catch {
undef $headers_io_watcher;
undef $timeout_timer;
- $self->_bad_request($sock) unless $_ eq 'client disconnected';
+ $self->_bad_request($sock) unless /^client disconnected/;
}
};
}
Please sign in to comment.
Something went wrong with that request. Please try again.