Files
rtorrent/src/rpc
trim21 b0ef95592b fix SCGI parse_headers: defer content-type body peek until body received
detect_content_type() peeked at m_buffer[m_body] to infer JSON vs XML
when no CONTENT_TYPE header was provided.  When the TCP header segment
arrives without any body bytes, m_body equals m_position and the peek
reads the null terminator padding byte — not the actual '{' or '[' —
causing JSON requests to be incorrectly classified as XML and fail.

Fix:
 - Remove the body peek from detect_content_type(); defer it to after
   the full body is confirmed present in event_read().
 - Add a m_content_type_set flag to distinguish header-provided type
   from auto-detected type.
2026-05-11 11:42:36 +02:00
..
2026-05-10 09:25:02 +02:00
2026-05-10 09:25:02 +02:00
2025-06-22 17:26:22 +02:00
2025-09-02 20:10:38 +02:00
2025-01-20 12:31:04 +01:00
2026-04-10 22:04:02 +09:00
2025-08-07 11:03:58 +02:00
2026-03-16 13:56:43 +01:00
2025-09-02 20:10:38 +02:00