|
From: | Szabolcs Szekelyi |
Subject: | [lwip-devel] [patch #10047] Fix case-sensitive comparison of Content-Length header for POST requests |
Date: | Tue, 23 Mar 2021 15:32:50 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.87 Safari/537.36 |
URL: <https://savannah.nongnu.org/patch/?10047> Summary: Fix case-sensitive comparison of Content-Length header for POST requests Project: lwIP - A Lightweight TCP/IP stack Submitted by: szekelyisz Submitted on: Tue 23 Mar 2021 07:32:48 PM UTC Category: apps Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Details: HTTP header names must be matched in a case-insensitive way as per RFC2616. This bug caused all POST requests whose headers that don't use the conventional Pascal+kebab case to fail. The popular axios libary uses lowercase header names for example. A new function `lwip_strncasestr` was implemented in src/core/def.c that's a case-insensitive variant of `lwip_strnstr`. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Tue 23 Mar 2021 07:32:48 PM UTC Name: bugfix-httpd-header-case.patch Size: 2KiB By: szekelyisz <http://savannah.nongnu.org/patch/download.php?file_id=51123> _______________________________________________________ Reply to this item at: <https://savannah.nongnu.org/patch/?10047> _______________________________________________ Message sent via Savannah https://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |