소스 검색

ensure content-length is a string

tags/v0.3.0
Jonathan Cobb 4 년 전
부모
커밋
9db278205b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      automation/roles/mitmproxy/files/bubble_modify.py

+ 2
- 1
automation/roles/mitmproxy/files/bubble_modify.py 파일 보기

@@ -68,7 +68,8 @@ def responseheaders(flow):
if flow.request.method == 'GET':
response = requests.get(uri, headers=headers)
elif flow.request.method == 'POST':
headers['Content-Length'] = len(flow.request.content)
bubble_log('responseheaders: special bubble request: POST content is '+str(flow.request.content))
headers['Content-Length'] = str(len(flow.request.content))
response = requests.post(uri, data=flow.request.content, headers=headers)
else:
bubble_log('responseheaders: special bubble request: method '+flow.request.method+' not supported')


불러오는 중...
취소
저장