Age | Commit message (Collapse) | Author | |
---|---|---|---|
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-09-03 | lua: fix error reporting when Lua handler cannot be compiled | Jo-Philipp Wich | |
Reported-by: Sebastian Apel <sebastian.apel@gmx.de> Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> | |||
2014-09-03 | main: use proper variable when warning about unsupported features | Jo-Philipp Wich | |
Reported-by: Sebastian Apel <sebastian.apel@gmx.de> Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> | |||
2014-09-03 | file: invoke error handler in 403 case as well | Jo-Philipp Wich | |
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> | |||
2014-06-08 | cgi: add _GNU_SOURCE define to fix build error on musl | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2014-04-08 | fix handling of / as cgi prefix | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2014-03-22 | main: strdup command line arguments that are modified | Felix Fietkau | |
This ensures that the process will show the correct command line in ps Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2014-03-22 | cgi: compare the physical path instead of the url to detect quirky urls | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@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-11-27 | ubus: remove indentation and whitespace from JSON responses to conserve a ↵ | Jo-Philipp Wich | |
bit of bandwidth | |||
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-11-16 | lua: fix lua 5.2 compatibility | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-11-11 | main: return after processing -d switch | Jo-Philipp Wich | |
2013-09-13 | ubus: use "ubus_rpc_session" instead of "sid" attribute name when querying ↵ | Jo-Philipp Wich | |
session.access | |||
2013-09-13 | ubus: fix session example script to conform to new rpc protocol | Jo-Philipp Wich | |
2013-09-13 | ubus: deny requests with a "ubus_rpc_session" toplevel attribute to prevent ↵ | Jo-Philipp Wich | |
injecting different SIDs | |||
2013-08-08 | ubus: pass current session id as ubus_rpc_session attribute to any called ↵ | Jo-Philipp Wich | |
procedure | |||
2013-08-07 | ubus: move sid into the params array of the json-rpc request to avoid ↵ | Jo-Philipp Wich | |
information leakage via the post url | |||
2013-08-07 | ubus: use per-request blob buffer to fetch list results, fixes global buffer ↵ | Jo-Philipp Wich | |
corruption with concurrent requests | |||
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-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-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-06-21 | ubus: fix handling of empty JSON-RPC batches | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-06-08 | ubus: duplicate request buffer to avoid memory corruption with multiple requests | Jo-Philipp Wich | |
2013-06-08 | ubus: use half of the script timeout as timeout for acl lookup call | Jo-Philipp Wich | |
2013-06-05 | ubus: implement list method to enumerate objects and signatures | Jo-Philipp Wich | |
2013-06-01 | relay: cancel the timeout on free | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-05-30 | ubus: clear the right timeout on rpc connection teardowns | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-05-30 | ubus: fix script timeout unit (seconds, not milliseconds) | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-05-23 | relay: do not process headers after the first error | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-05-23 | relay: fix close handling | Felix Fietkau | |
When the relay process has exited, close the connection as soon as no data can immediately be read from the socket anymore, and the read buffer has been emptied. This fixes timeouts with scripts that leave processes lingering around without closing their fds. 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-16 | uhttpd: allow the config to override the default index file | 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-04-17 | Accept square bracket notation for IPv6 addresses | Jo-Philipp Wich | |
2013-04-15 | tls: fix container_of use for casting the ssl ustream to client state | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-03-18 | lua: fix query string handling, the QUERY_STRING environment variable must ↵ | Jo-Philipp Wich | |
not contain the leading question mark | |||
2013-03-18 | Load plugins with RTLD_GLOBAL, fixes Lua library exports | Jo-Philipp Wich | |
2013-03-15 | relay: add a missing buffer availability check | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-03-12 | detect the right library name for json-c | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2013-03-05 | plugin.c: don't assume post_init callback to exist | Jo-Philipp Wich | |
2013-01-26 | ubus: use a default sid if authentication is disabled | Jo-Philipp Wich | |
2013-01-26 | set the docroot to the current working directory if none is specified, fixes ↵ | Jo-Philipp Wich | |
random null pointer dereferencing | |||
2013-01-25 | ubus: pass json rpc arguments to called ubus functions | Jo-Philipp Wich | |
2013-01-25 | ubus: add option to not authenticate ubus requests | Jo-Philipp Wich | |
2013-01-25 | ubus: remove session api from plugin and check access via ubus call to let ↵ | Jo-Philipp Wich | |
other services provide the session api | |||
2013-01-23 | ubus: rename uloop_timeout_pending() to uloop_timeout_remaining() | Jo-Philipp Wich | |