If no Accept header field is present, then it is assumed that the client accepts all media types.

This commit is contained in:
Miroslav Stampar 2011-02-22 22:26:22 +00:00
parent 13f0d5ce00
commit 38dc82e13e

View File

@ -941,7 +941,6 @@ def __setHTTPExtraHeaders():
if header and value:
conf.httpHeaders.append((header, value))
elif not conf.httpHeaders or len(conf.httpHeaders) == 1:
conf.httpHeaders.append(("Accept", "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"))
conf.httpHeaders.append(("Accept-Language", "en-us,en;q=0.5"))
conf.httpHeaders.append(("Accept-Charset", "ISO-8859-15,utf-8;q=0.7,*;q=0.7"))