|
|
@@ -330,8 +330,10 @@ def special_bubble_response(flow): |
|
|
|
elif flow.request.method == 'POST': |
|
|
|
if bubble_log.isEnabledFor(DEBUG): |
|
|
|
bubble_log.debug('special_bubble_response: special bubble request: POST content is '+str(flow.request.content)) |
|
|
|
headers['Content-Length'] = str(len(flow.request.content)) |
|
|
|
if flow.request.content: |
|
|
|
headers['Content-Length'] = str(len(flow.request.content)) |
|
|
|
response = requests.post(uri, data=flow.request.content, headers=headers, stream=True) |
|
|
|
|
|
|
|
else: |
|
|
|
if bubble_log.isEnabledFor(WARNING): |
|
|
|
bubble_log.warning('special_bubble_response: special bubble request: method '+flow.request.method+' not supported') |
|
|
|