HTTPRequest icon indicating copy to clipboard operation
HTTPRequest copied to clipboard

Fix three critical code bugs

Open elnormous opened this issue 4 months ago • 1 comments

Fix three critical bugs in HTTPRequest.hpp for IPv6 URI parsing, Transfer-Encoding header handling, and chunk size parsing.

  • parseUri now correctly handles IPv6 bracketed hosts and optional ports (e.g., [::1]:80).
  • Transfer-Encoding header parsing is now case-insensitive and correctly tokenizes comma-separated values, accepting "chunked" and rejecting unsupported encodings.
  • Chunk size parsing now correctly ignores chunk extensions after a semicolon, as specified by RFC 7230.

Open in Cursor Open in Web

elnormous avatar Sep 01 '25 17:09 elnormous

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch. Learn more about Cursor Agents

cursor[bot] avatar Sep 01 '25 17:09 cursor[bot]