1 parent 1443352 commit 1d92304Copy full SHA for 1d92304
2 files changed
pproxy/__doc__.py
@@ -1,5 +1,5 @@
1
__title__ = "pproxy"
2
-__version__ = "2.2.3"
+__version__ = "2.2.4"
3
__license__ = "MIT"
4
__description__ = "Proxy server that can tunnel among remote servers by regex rules."
5
__keywords__ = "proxy socks http shadowsocks shadowsocksr ssr redirect pf tunnel cipher ssl udp"
pproxy/proto.py
@@ -271,7 +271,7 @@ async def http_channel(self, reader, writer, stat_bytes, stat_conn):
271
if b'\r\n\r\n' not in data:
272
data += await reader.readuntil(b'\r\n\r\n')
273
lines, data = data.split(b'\r\n\r\n', 1)
274
- headers = lines[:-4].decode().split('\r\n')
+ headers = lines.decode().split('\r\n')
275
method, path, ver = HTTP_LINE.match(headers.pop(0)).groups()
276
lines = '\r\n'.join(i for i in headers if not i.startswith('Proxy-'))
277
headers = dict(i.split(': ', 1) for i in headers if ': ' in i)
0 commit comments