Leaklens

psf__requests-3362

Uncertain about content/text vs iter_content(decode_unicode=True/False)

Verdict: disputed: one of the two checks found quoted evidence (not counted as a flag).

There's at least one key difference: `decode_unicode=True` doesn't fall back to `apparent_encoding`, which means it'll never autodetect the encoding. This means if `response.encoding` is None it is a no-op: in fact, it's a no-op that yields bytes. That behaviour seems genuinely bad to me, so I think we should consider it a bug. I'd rather we had the same logic as in `text` for this.

Disputed: one of the two checks found a stated fix, the other found nothing. Not counted as a flag; the quote is on the task page.

All SWE-bench Lite tasks · more psf/requests tasks · How the check works