Skip to content

Commit

Permalink
Complying MS-RPCH with HTTP/1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mohemiv committed Aug 2, 2021
1 parent 1636eaa commit 4419d12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion impacket/dcerpc/v5/rpch.py
Expand Up @@ -611,7 +611,8 @@ def create_tunnel(self):
except (IndexError, KeyError, AttributeError):
raise RPCProxyClientException('RPC Proxy CONN/A1 request failed')

if b'Transfer-Encoding: chunked' in resp:
resp_ascii = resp.decode("ASCII", errors='replace')
if "transfer-encoding: chunked" in resp_ascii.lower():
self.__serverChunked = True

# If the body is here, let's send it to rpc_out_recv1()
Expand Down

0 comments on commit 4419d12

Please sign in to comment.