kennethreitz/requests — pull request #317 by atdt (2011-12-23 02:43:30+00:00)
Title: fix iteration on null responses in safe_mode

Previously, calling `iter_lines` or `iter_content` on a blank response caused an `AttributeError` to be thrown, because it called `self.raw.read()` where `raw` was `None`. In my opinion, the correct behavior should be to return an empty iterator.