From 20e597d7dd3d2048dc8ece932875957410812d13 Mon Sep 17 00:00:00 2001 From: Georges Toth Date: Wed, 12 Jul 2017 09:33:13 +0200 Subject: [PATCH] fixes #26 "TypeError: a bytes-like object is required, not str" --- scapy_http/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapy_http/http.py b/scapy_http/http.py index 0ff5f3b..8e9639c 100644 --- a/scapy_http/http.py +++ b/scapy_http/http.py @@ -15,7 +15,7 @@ def _canonicalize_header(name): return name.strip().lower() def _parse_headers(s): - headers = s.split("\r\n") + headers = s.split(b"\r\n") headers_found = {} for header_line in headers: try: