Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I suppress the urlfetch headers warning in Google App Engine?

Whenever I request an external URL using urlfetch on GAE I get the following warning:

WARNING  2012-03-16 15:37:21,474 urlfetch_stub.py:428] Stripped prohibited headers from URLFetch request: ['Content-Length']

I understand why this is happening, and that I won't be able to stop the underlying issue. Is there a way I can suppress this warning so that it doesn't clog up the logs? Of course I'd still want to know about any other warnings/errors that urlfetch wanted to log.

like image 750
alnorth29 Avatar asked Mar 16 '12 15:03

alnorth29


1 Answers

There's no way to suppress it from the logs, you'll have to suppress the Content-type header.

like image 179
Guido van Rossum Avatar answered Nov 11 '22 05:11

Guido van Rossum