﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18764	HttpResponse._get_content shouldn't accept non-text types	Aymeric Augustin	Aymeric Augustin	"Currently, the `httpwrappers` tests verify the behavior of constructs such as `HttpResponse([1,1,2,4,8])`. This doesn't make any sense to me.

`HttpResponse` must convert its content to bytes. But when a `Content-Encoding` is already set, it mustn't perform any encoding, so it can't go through a unicode representation.

Now, in Python 3, `bytes(3) == \x00\x00\x00`. So I don't see any way to implement the construct above in Python 3 without special-casing integers.

Rather than explicitly hacking a meaningless behavior, I'd like to remove these tests and require that `HttpResponse` be instantiated with a (byte)string or an iterable of (byte)strings.

I'm marking this as a release blocker because it causes a test failure under Python 3 (`httpwrappers.HttpResponseTests.test_iter_content`)."	Bug	closed	HTTP handling	dev	Release blocker	fixed			Ready for checkin	1	0	0	0	0	0
