2
0
mirror of https://github.com/lanjelot/patator synced 2024-11-16 06:15:24 +00:00

fixed ajp_fuzz response

This commit is contained in:
lanjelot 2016-11-10 12:00:25 +10:00
parent c8d9d62ccf
commit 7004b26c98

View File

@ -3604,7 +3604,12 @@ class AJP_Connection(TCP_Connection):
sock.close() sock.close()
class Response_AJP(Response_HTTP): class Response_AJP(Response_HTTP):
pass def __init__(self, code, response, status_msg='', timing=0, trace=None, content_length=-1, target={}):
Response_HTTP.__init__(self, code, response, timing, trace, content_length, target)
self.status_msg = status_msg
def __str__(self):
return self.status_msg or self.mesg
def prepare_ajp_forward_request(target_host, req_uri, method): def prepare_ajp_forward_request(target_host, req_uri, method):
fr = AjpForwardRequest(AjpForwardRequest.SERVER_TO_CONTAINER) fr = AjpForwardRequest(AjpForwardRequest.SERVER_TO_CONTAINER)
@ -3696,7 +3701,7 @@ class AJP_fuzz(TCP_Cache):
if persistent == '0': if persistent == '0':
self.reset() self.reset()
return self.Response(http_code, http_status_msg, timing, data, content_length, target) return self.Response(http_code, data, http_status_msg, timing, data, content_length, target)
# }}} # }}}