From 1611afe374caecea3a74e8f3ef766cd159aa5f7f Mon Sep 17 00:00:00 2001 From: Itelo Date: Thu, 30 Apr 2015 11:43:15 -0300 Subject: [PATCH] fixed #5, implemented #8 --- webnote.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webnote.py b/webnote.py index fd9075a..e1b6891 100644 --- a/webnote.py +++ b/webnote.py @@ -28,8 +28,7 @@ resource = request_match.group(2) protocol = request_match.group(3) data = request_match.group(4) - request_match = \ - re.match(r'^([^ ]+) ([^ ]+) ([^ ]+)\r\n(.*)$', data , re.DOTALL) + else: raise Exception('Cannot read request')