From 7a04595f5eb3d63c2823efd502d28d01dfb09736 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 1 Dec 2014 11:15:45 +0100 Subject: [PATCH] Added a reference url (http charset priority) --- lib/request/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/basic.py b/lib/request/basic.py index 72a5b03f7..25e6a093a 100755 --- a/lib/request/basic.py +++ b/lib/request/basic.py @@ -258,7 +258,7 @@ def decodePage(page, contentEncoding, contentType): if (any((httpCharset, metaCharset)) and not all((httpCharset, metaCharset)))\ or (httpCharset == metaCharset and all((httpCharset, metaCharset))): - kb.pageEncoding = httpCharset or metaCharset + kb.pageEncoding = httpCharset or metaCharset # Reference: http://bytes.com/topic/html-css/answers/154758-http-equiv-vs-true-header-has-precedence debugMsg = "declared web page charset '%s'" % kb.pageEncoding singleTimeLogMessage(debugMsg, logging.DEBUG, debugMsg) else: