Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-04-24 | proc: expose HTTP Origin header in process environment | Jo-Philipp Wich | |
Map the "Origin:" header as $HTTP_ORIGIN environment variable for use by request handling processes. Signed-off-by: Jo-Philipp Wich <jo@mein.io> | |||
2018-04-04 | Revert "proc: avoid stdio deadlocks" | Jo-Philipp Wich | |
This reverts commit ccd9717ba5d501b45fda957f0ea41c4660ef414c. | |||
2018-01-25 | proc: avoid stdio deadlocks | Jo-Philipp Wich | |
When a request handler accepting post data is too slow in consuming stdin, uhttpd might deadlock with the master process stuck in a blocking write() to the child and the child stuck with a blocking write() to the master. Avoid this issue by putting the master side write end of the child pipe into nonblocking mode right away and by raising the data_blocked flag when attempts to write to the child yield EAGAIN. Setting the flag ensures that client_poll_post_data() does not immediately trigger a write attempt again, which effectively yields the master write cycle so that the relay ustream has a chance to consume output of the client process, thus solving the deadlock. Signed-off-by: Jo-Philipp Wich <jo@mein.io> | |||
2017-07-02 | proc: expose HTTP_AUTH_USER and HTTP_AUTH_PASS | Jo-Philipp Wich | |
Mimic other web servers like Nginx or Apache and expose the parsed basic auth information as HTTP_AUTH_USER and HTTP_AUTH_PASS environment variables to CGI processes. This also restores login-from-basic-auth functionality in LuCI. Signed-off-by: Jo-Philipp Wich <jo@mein.io> | |||
2017-07-02 | proc: do not declare empty process variables | Jo-Philipp Wich | |
If a HTTP header variable has no corresponding value, then do not set it to the empty string but to NULL, so that cgi.c will later skip it when setting up the process environment. Signed-off-by: Jo-Philipp Wich <jo@mein.io> | |||
2015-08-17 | cgi: Support passing X-HTTP-Method-Override header. | Karl Palsson | |
As uhttpd doesn't currently support PUT/DELETE/PATCH, allow passing the commonly used X-HTTP-Method-Override header to CGI scripts. This is an optional "protocol specific metadata" variable as per rfc 3875 section 4.1.18. Signed-off-by: Karl Palsson <karlp@remake.is> | |||
2015-05-30 | proc: add HTTPS environment variable | Jo-Philipp Wich | |
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> | |||
2014-03-21 | relay: do forward data if the http request type was HEAD | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-07-31 | proc: consume all data after the pipe dies, instead of looping with 100% cpu ↵ | Felix Fietkau | |
usage Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-01-22 | proc: call read notify after more write space is available | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-01-19 | implement support for script timeout for cgi/lua | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-01-13 | relicense to ISC | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-01-13 | fix cgi/lua header parsing | Felix Fietkau | |
2013-01-13 | fix local/remote port env vars | Felix Fietkau | |
2013-01-06 | de-constify the url parameter for the handler, it becomes invalid after the ↵ | Felix Fietkau | |
request anyway | |||
2013-01-04 | add lua plugin support | Felix Fietkau | |
2013-01-04 | ensure the cgi postdata write pipe is closed for other processes | Felix Fietkau | |
2013-01-04 | re-enable reads from the cgi pipe after enough data has been written to the ↵ | Felix Fietkau | |
client | |||
2013-01-04 | plug a memory leak in cgi processing | Felix Fietkau | |
2013-01-04 | free cgi headers | Felix Fietkau | |
2013-01-03 | use pipes instead of a socketpair, EOF handling is broken with sockets | Felix Fietkau | |
2013-01-03 | implement proper flow control for relaying postdata | Felix Fietkau | |
2013-01-03 | fix use-after-realloc issue with the request url | Felix Fietkau | |
2013-01-03 | add post data relaying | Felix Fietkau | |
2013-01-03 | cleanup dispatch struct access | Felix Fietkau | |
2013-01-02 | add local/remote address env vars for cgi | Felix Fietkau | |
2013-01-02 | parse status header code from cgi scripts | Felix Fietkau | |
2013-01-01 | fix typo in header name check | Felix Fietkau | |
2013-01-01 | add preliminary cgi support, needs fixing for close handling | Felix Fietkau | |