From bf9877fc1feb3e0578ddad87a5b72d8e31a6b564 Mon Sep 17 00:00:00 2001 From: Juhani Haverinen Date: Tue, 12 Jul 2016 18:02:36 +0300 Subject: [PATCH] Tiny bugfix for HTTP parsing --- neomi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neomi.py b/neomi.py index eadca77..12921a4 100644 --- a/neomi.py +++ b/neomi.py @@ -121,7 +121,7 @@ def get_request(sock): first_line = first_line[:-1] first_line = first_line.split(' ') - if len(first_line) >= 1 and first_line[0] == 'GET': + if len(first_line) >= 2 and first_line[0] == 'GET': selector_path = first_line[1] selector, path = extract_selector_path(selector_path) return path, Protocol.http, selector