Permalink
Find file Copy path
6cf1b42 Jul 27, 2017
1 contributor

Users who have contributed to this file

18 lines (11 sloc) 448 Bytes
import sys
import re
def start():
return BlankAuthResponse()
class BlankAuthResponse:
RESPONSE_RE = re.compile('(response=".*?")', flags=re.DOTALL)
def request(self, flow):
if flow.request.port in (16992, 16993):
if 'Authorization' in flow.request.headers:
flow.request.headers['Authorization'] = \
self.RESPONSE_RE.sub('response=""', flow.request.headers['Authorization'])