Skip to content

Commit 37e6601

Browse files
Chan Chak Shingzoracon
authored andcommitted
Fix fetch test fails when response header cannot be utf-8 decoded (EFForg#18387)
* Update http_client.py * Create eti.hket.com.xml * Delete eti.hket.com.xml
1 parent 159acba commit 37e6601

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/rules/src/https_everywhere_checker/http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def staticFetch(url, options, platformPath):
346346
c.perform()
347347

348348
bufValue = buf.getvalue()
349-
headerStr = headerBuf.getvalue().decode('utf-8')
349+
headerStr = headerBuf.getvalue().decode('utf-8', 'ignore')
350350
httpCode = c.getinfo(pycurl.HTTP_CODE)
351351
finally:
352352
buf.close()

0 commit comments

Comments
 (0)