[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #10082] httpd: allow better handling of custom POST
From: |
Thomas Johnson |
Subject: |
[lwip-devel] [patch #10082] httpd: allow better handling of custom POST responses |
Date: |
Mon, 14 Jun 2021 12:17:28 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0 |
URL:
<https://savannah.nongnu.org/patch/?10082>
Summary: httpd: allow better handling of custom POST
responses
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: tjohnson
Submitted on: Mon 14 Jun 2021 04:17:27 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:
This patch does two things: (1) call different functions depending on how the
POST request ended (closed vs. finished), and (2) allow the POST request
handler to pass custom data to fs_open_custom() by changing the fs_file's
pextension field (which has otherwise been memset() to zero).
This does break existing POST handlers by requiring the implementation of a
new function, but in most cases it should be easy to fix. It also makes
assumptions about the pextension field of the file handle in the http_state
not being changed by after initialization, which is currently true.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 14 Jun 2021 04:17:27 PM UTC Name: patch Size: 3KiB By: tjohnson
<http://savannah.nongnu.org/patch/download.php?file_id=51564>
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/patch/?10082>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] [patch #10082] httpd: allow better handling of custom POST responses,
Thomas Johnson <=