equal
deleted
inserted
replaced
166 inheader = False |
166 inheader = False |
167 cur = [] |
167 cur = [] |
168 |
168 |
169 mimeheaders = [b'content-type'] |
169 mimeheaders = [b'content-type'] |
170 |
170 |
171 if not util.safehasattr(stream, b'next'): |
171 if not util.safehasattr(stream, 'next'): |
172 # http responses, for example, have readline but not next |
172 # http responses, for example, have readline but not next |
173 stream = fiter(stream) |
173 stream = fiter(stream) |
174 |
174 |
175 for line in stream: |
175 for line in stream: |
176 cur.append(line) |
176 cur.append(line) |