Hi guys,

Raising a 4xx exception is printing extra 512 'x' characters in the body. 
This seems to be the culprit (HTTP.py):


      if len(body)<512 and self.headers['Content-Type'].startswith(
'text/html'):
                    body += '<!-- %s //-->' % ('x'*512) ### trick IE 

Is there any easy way of not printing these extra characters without 
chaging HTTP.py? 
Long term, It would be nice if there was switch to turn this off, maybe an 
user-agent argument in the constructor?
The current behaviour is not great for REST APIs.

Thanks! :)
g.

-- 



Reply via email to