Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-06-16 | uhttpd: add support for adding arbitrary headers via handler scripts | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@nbd.name> | |||
2015-10-08 | fix chunked transfer encoding in keepalive mode | Jo-Philipp Wich | |
The two commits 5162e3b0ee7bd1d0fd6e75e1ca7993a1834b5291 "allow request handlers to disable chunked reponses" and 618493e378e2239f0d30902e47adfa134e649fdc "file: disable chunked encoding for file responses" broke the chunked transfer encoding handling for proc responses in keep-alive connections that followed a file response with http status 204 or 304. The effect of this bug is that cgi responses following a 204 or 304 one where sent neither in chunked encoding nor with a content-length header, causing browsers to stall until the keep alive timeout was reached. Fix the logic flaw by inverting the chunk prevention flag in the client state and by testing the chunked encoding preconditions every time instead of once upon client (re-)initialization. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> | |||
2015-05-30 | client: use 307 instead of 302 for HTTPS redirects | Jo-Philipp Wich | |
Use the 307 code to force agents to retain the original request method. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> | |||
2015-05-30 | add support for enforcing HTTPS | Jo-Philipp Wich | |
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> | |||
2015-05-30 | allow request handlers to disable chunked reponses | Jo-Philipp Wich | |
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> | |||
2014-10-27 | client: store http code of last emitted response | Jo-Philipp Wich | |
Certain response types (notably 204 and 304) require a slightly different handling like emitting the response body entirely, therfore record the last code to act on it in the appropriate places. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> | |||
2014-06-10 | ubus: add CORS header support | Jo-Philipp Wich | |
In order to support cross-domain AJAX requests to the /ubus endpoint we need to implement the Cross-Origin Resource Sharing (CORS) spec in the ubus plugin. - Implement a new option "-X" to enable CORS support in ubus - Implement rudimentary support for "OPTIONS" HTTP requests - Implement essential CORS headers the ubus plugin The current CORS response headers merely reflect the request headers sent by the client, this way any requesting origin is automatically allowed. Cross-domain cookies (Access-Control-Allow-Credentials) are unconditionally enabled. Restricting permitted origins and toggle the credential accepting can be made configurable in a future commit to allow more fine grained control over permitted AJAX clients. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> | |||
2013-11-21 | uhttpd: fix crashes in the ubus plugin | Felix Fietkau | |
The ubus plugin calls blocking ubus functions that loop back into uloop_run. Protect the client data structure with refcounting to ensure that the outer uloop_run call does not clean up the data that the inner uloop_run call is still processing. Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-07-31 | client: prevent further read calls after a client has been freed | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-07-26 | detect chrome before safari, chrome includes Safari/ in the UA header | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-07-26 | disable connection_close override if a keep-alive header is found | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-07-26 | disable keep-alive for POST requests to improve compatibility | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-05-23 | fix infinite loop when the initial two characters in a connection are \r\n | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-05-14 | uhttpd: mark a TLS connections internally to clean up their state | Felix Fietkau | |
Fixes a per-SSL-connection memory leak Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-01-22 | do not reset .notify_write on request done | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-01-19 | add support for deferring script requests, limit maximum number of script ↵ | Felix Fietkau | |
calls to 3, maximum number of connections to 100 Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-01-19 | ignore initial newlines in http requests | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-01-19 | fix container_of() on ustream callbacks | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-01-19 | poll read data after connect as well | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-01-19 | poll connection after request completion when using keepalive | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-01-19 | add user agent detection for working around keepalive issues and add support ↵ | Felix Fietkau | |
for the connection: close|keep-alive header 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 getting local server address | Felix Fietkau | |
2013-01-04 | add basic tls support, todo: error handling | Felix Fietkau | |
2013-01-04 | fix resuming accept() calls after exceeding client limit | 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 | do not send an error on a full buffer for post data | Felix Fietkau | |
2013-01-03 | fix chunked postdata parsing | Felix Fietkau | |
2013-01-03 | add missing n_clients decrement | Felix Fietkau | |
2013-01-03 | add post data relaying | Felix Fietkau | |
2013-01-03 | use a better error code for unsupported expect headers | Felix Fietkau | |
2013-01-03 | bail out on unsupported Expect: headers | Felix Fietkau | |
2013-01-02 | fix error handling of invalid http method/version | Felix Fietkau | |
2013-01-02 | add support for sending HTTP/1.1 100 Continue | Felix Fietkau | |
2013-01-02 | add rfc1918 filter check | Felix Fietkau | |
2013-01-02 | add local/remote address env vars for cgi | Felix Fietkau | |
2013-01-02 | fix client state tracking and request complete handling | Felix Fietkau | |
2013-01-01 | add preliminary cgi support, needs fixing for close handling | Felix Fietkau | |
2013-01-01 | add uh_split_header() | Felix Fietkau | |
2013-01-01 | code cleanup | Felix Fietkau | |
2012-12-31 | free client header buffer memory | Felix Fietkau | |
2012-12-31 | move dispatch cbs and data to one place | Felix Fietkau | |
2012-12-31 | make uh_path_lookup static | Felix Fietkau | |
2012-12-31 | fix 404 and 403 error handling, improve error message output | Felix Fietkau | |
2012-12-30 | Initial implementation | Felix Fietkau | |