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)
commit3d5aa1436185913c2611deb5b2b51b65744f1e0f
tree9417c035c7f13e5e3db846b19251bd962351224a
parent988c9ae3568c3d9e7b720bd448880ce030c3cc48
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>
Makefile
src/main.c