patchlwIP - A Lightweight TCP/IP stack - Patches: patch #10082, httpd: allow better handling of...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #10082: httpd: allow better handling of custom POST responses

Submitter:  Thomas Johnson <tjohnson>
Submitted:  Mon 14 Jun 2021 04:17:27 PM UTC
   
 
Category:  apps Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Planned Release:  None

Mon 14 Jun 2021 04:17:27 PM UTC, original submission:  

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.

Thomas Johnson <tjohnson>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #51564:  patch added by tjohnson (3KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tjohnson (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-06-14 tjohnson Attached File- Added patch, #51564

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code