cgi-io: use dynamic memory for post decoding, support proc files
authorJo-Philipp Wich <jo@mein.io>
Mon, 10 Feb 2020 17:19:34 +0000 (18:19 +0100)
committerJohn Crispin <john@phrozen.org>
Thu, 13 Feb 2020 07:38:32 +0000 (08:38 +0100)
commit39087eba18011ca1e064c8e356ee33533be760db
treea5f1c91cd9c29ead2a92d6c49a3ca602933c96e8
parent57dd0ca59b54fe3dae2adab248eb75ee4b2b26ee
cgi-io: use dynamic memory for post decoding, support proc files

Allocate dynamic buffer memory for decoding post data and allow post
requsts up to 128KB compared to the previos 1KB limit.

Also support downloading /proc and /sys files by falling back to
chunked transfer encoding when the file size cannot be determined.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
net/cgi-io/Makefile
net/cgi-io/src/main.c