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 6527 A bug in HttpResponse with iterators daonb Aymeric Augustin "{{{ >>> from django.http import HttpResponse >>> response = HttpResponse(file('helloworld.txt','r')) >>> print response Content-Type: text/html; charset=utf-8 helloworld >>> print response Content-Type: text/html; charset=utf-8 >>> }}} Seems to me django.http.HttpResponse has to be modified so that when its __init__ is given an iterator, it will go through the iterator only once. I'd be happy to deliver a patch if this is something that should be fixed. " Bug closed HTTP handling dev Normal fixed http iterators mikolo2@… jim@… robert.coup@… real.human@… Forest Bond daemianmack@… net147 Accepted 1 0 0 1 0 0