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)
committerJo-Philipp Wich <jo@mein.io>
Wed, 4 Mar 2020 08:52:49 +0000 (09:52 +0100)
commit7f00eebab0b765ff0fe63a5ac12bd0696f0c8cf4
tree54e9095d16343edf936f9452905ee36dc152f84e
parentce9229d2e0946dc410d9e17340f48431bd18ce18
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>
(cherry picked from commit 39087eba18011ca1e064c8e356ee33533be760db)
net/cgi-io/Makefile
net/cgi-io/src/main.c