project/uhttpd.git
8 years agouse pipes instead of a socketpair, EOF handling is broken with sockets
Felix Fietkau [Thu, 3 Jan 2013 21:45:18 +0000 (22:45 +0100)]
use pipes instead of a socketpair, EOF handling is broken with sockets

8 years agoimplement proper flow control for relaying postdata
Felix Fietkau [Thu, 3 Jan 2013 16:03:49 +0000 (17:03 +0100)]
implement proper flow control for relaying postdata

8 years agofix use-after-realloc issue with the request url
Felix Fietkau [Thu, 3 Jan 2013 14:01:50 +0000 (15:01 +0100)]
fix use-after-realloc issue with the request url

8 years agoclean up / fix #include
Felix Fietkau [Thu, 3 Jan 2013 13:13:56 +0000 (14:13 +0100)]
clean up / fix #include

8 years agolink against libcrypt
Felix Fietkau [Thu, 3 Jan 2013 13:13:13 +0000 (14:13 +0100)]
link against libcrypt

8 years agofix compile errors on linux
Felix Fietkau [Thu, 3 Jan 2013 12:50:59 +0000 (13:50 +0100)]
fix compile errors on linux

8 years agodo not send an error on a full buffer for post data
Felix Fietkau [Thu, 3 Jan 2013 02:33:24 +0000 (03:33 +0100)]
do not send an error on a full buffer for post data

8 years agofix chunked postdata parsing
Felix Fietkau [Thu, 3 Jan 2013 01:49:36 +0000 (02:49 +0100)]
fix chunked postdata parsing

8 years agoadd missing n_clients decrement
Felix Fietkau [Thu, 3 Jan 2013 01:29:45 +0000 (02:29 +0100)]
add missing n_clients decrement

8 years agoadd post data relaying
Felix Fietkau [Thu, 3 Jan 2013 01:25:10 +0000 (02:25 +0100)]
add post data relaying

8 years agocleanup dispatch struct access
Felix Fietkau [Thu, 3 Jan 2013 00:14:07 +0000 (01:14 +0100)]
cleanup dispatch struct access

8 years agodeclare dispatch struct type
Felix Fietkau [Thu, 3 Jan 2013 00:12:43 +0000 (01:12 +0100)]
declare dispatch struct type

8 years agofix index file handling
Felix Fietkau [Thu, 3 Jan 2013 00:08:06 +0000 (01:08 +0100)]
fix index file handling

8 years agouse a better error code for unsupported expect headers
Felix Fietkau [Thu, 3 Jan 2013 00:03:17 +0000 (01:03 +0100)]
use a better error code for unsupported expect headers

8 years agobail out on unsupported Expect: headers
Felix Fietkau [Wed, 2 Jan 2013 23:29:58 +0000 (00:29 +0100)]
bail out on unsupported Expect: headers

8 years agomove timegm declaration to utils.h
Felix Fietkau [Wed, 2 Jan 2013 18:48:37 +0000 (19:48 +0100)]
move timegm declaration to utils.h

8 years agomake hex array static
Felix Fietkau [Wed, 2 Jan 2013 18:42:19 +0000 (19:42 +0100)]
make hex array static

8 years agofix error handling of invalid http method/version
Felix Fietkau [Wed, 2 Jan 2013 18:35:21 +0000 (19:35 +0100)]
fix error handling of invalid http method/version

8 years agoreduce stack usage of uh_file_dirlist
Felix Fietkau [Wed, 2 Jan 2013 18:29:08 +0000 (19:29 +0100)]
reduce stack usage of uh_file_dirlist

8 years agofix buffer handling for time formatting
Felix Fietkau [Wed, 2 Jan 2013 18:25:38 +0000 (19:25 +0100)]
fix buffer handling for time formatting

8 years agorework string handling for directory listing, avoid redundant string scanning
Felix Fietkau [Wed, 2 Jan 2013 18:24:23 +0000 (19:24 +0100)]
rework string handling for directory listing, avoid redundant string scanning

8 years agoadd support for sending HTTP/1.1 100 Continue
Felix Fietkau [Wed, 2 Jan 2013 18:07:17 +0000 (19:07 +0100)]
add support for sending HTTP/1.1 100 Continue

8 years agoadd rfc1918 filter check
Felix Fietkau [Wed, 2 Jan 2013 15:14:15 +0000 (16:14 +0100)]
add rfc1918 filter check

8 years agoadd uh_addr_rfc1918()
Felix Fietkau [Wed, 2 Jan 2013 15:12:02 +0000 (16:12 +0100)]
add uh_addr_rfc1918()

8 years agoremove a static buffer
Felix Fietkau [Wed, 2 Jan 2013 13:54:00 +0000 (14:54 +0100)]
remove a static buffer

8 years agoadd auth support
Felix Fietkau [Wed, 2 Jan 2013 13:47:12 +0000 (14:47 +0100)]
add auth support

8 years agochange uh_b64decode to take a void pointer to avoid redundant signed/unsigned casts
Felix Fietkau [Wed, 2 Jan 2013 13:35:35 +0000 (14:35 +0100)]
change uh_b64decode to take a void pointer to avoid redundant signed/unsigned casts

8 years agoremove unused constant
Felix Fietkau [Wed, 2 Jan 2013 13:01:23 +0000 (14:01 +0100)]
remove unused constant

8 years agoconstify, fix types
Felix Fietkau [Wed, 2 Jan 2013 12:59:18 +0000 (13:59 +0100)]
constify, fix types

8 years agoadd local/remote address env vars for cgi
Felix Fietkau [Wed, 2 Jan 2013 12:23:55 +0000 (13:23 +0100)]
add local/remote address env vars for cgi

8 years agoenable http keepalive again, it seems to work properly now
Felix Fietkau [Wed, 2 Jan 2013 11:46:20 +0000 (12:46 +0100)]
enable http keepalive again, it seems to work properly now

8 years agofix client state tracking and request complete handling
Felix Fietkau [Wed, 2 Jan 2013 11:41:21 +0000 (12:41 +0100)]
fix client state tracking and request complete handling

8 years agoparse status header code from cgi scripts
Felix Fietkau [Wed, 2 Jan 2013 11:08:09 +0000 (12:08 +0100)]
parse status header code from cgi scripts

8 years agorevert cflags change
Felix Fietkau [Tue, 1 Jan 2013 22:53:11 +0000 (23:53 +0100)]
revert cflags change

8 years agoconsume the newline (overwritten with 0-byte) after receiving cgi process headers
Felix Fietkau [Tue, 1 Jan 2013 22:50:58 +0000 (23:50 +0100)]
consume the newline (overwritten with 0-byte) after receiving cgi process headers

8 years agofix line length calculation
Felix Fietkau [Tue, 1 Jan 2013 22:44:41 +0000 (23:44 +0100)]
fix line length calculation

8 years agofix typo in header name check
Felix Fietkau [Tue, 1 Jan 2013 22:44:35 +0000 (23:44 +0100)]
fix typo in header name check

8 years agoadd preliminary cgi support, needs fixing for close handling
Felix Fietkau [Tue, 1 Jan 2013 22:28:19 +0000 (23:28 +0100)]
add preliminary cgi support, needs fixing for close handling

8 years agofix clearenv() on mac os x
Felix Fietkau [Tue, 1 Jan 2013 21:37:05 +0000 (22:37 +0100)]
fix clearenv() on mac os x

8 years agoadd uh_split_header()
Felix Fietkau [Tue, 1 Jan 2013 20:46:12 +0000 (21:46 +0100)]
add uh_split_header()

8 years agoadd uh_path_match()
Felix Fietkau [Tue, 1 Jan 2013 19:08:13 +0000 (20:08 +0100)]
add uh_path_match()

8 years agoappend / to directory links to avoid unnecessary redirects
Felix Fietkau [Tue, 1 Jan 2013 14:56:05 +0000 (15:56 +0100)]
append / to directory links to avoid unnecessary redirects

8 years agocode cleanup
Felix Fietkau [Tue, 1 Jan 2013 13:25:25 +0000 (14:25 +0100)]
code cleanup

8 years agorename uhttpd-mimetypes.h to mimetypes.h
Felix Fietkau [Tue, 1 Jan 2013 13:32:09 +0000 (14:32 +0100)]
rename uhttpd-mimetypes.h to mimetypes.h

8 years agominor cleanup
Felix Fietkau [Tue, 1 Jan 2013 12:47:27 +0000 (13:47 +0100)]
minor cleanup

8 years agofree client header buffer memory
Felix Fietkau [Mon, 31 Dec 2012 18:40:34 +0000 (19:40 +0100)]
free client header buffer memory

8 years agoremove unnecessary client struct field members
Felix Fietkau [Mon, 31 Dec 2012 18:39:41 +0000 (19:39 +0100)]
remove unnecessary client struct field members

8 years agomove dispatch cbs and data to one place
Felix Fietkau [Mon, 31 Dec 2012 18:29:44 +0000 (19:29 +0100)]
move dispatch cbs and data to one place

8 years agoadd -Wmissing-declarations
Felix Fietkau [Mon, 31 Dec 2012 17:49:15 +0000 (18:49 +0100)]
add -Wmissing-declarations

8 years agomake uh_path_lookup static
Felix Fietkau [Mon, 31 Dec 2012 17:49:08 +0000 (18:49 +0100)]
make uh_path_lookup static

8 years agouse -Os
Felix Fietkau [Mon, 31 Dec 2012 17:43:14 +0000 (18:43 +0100)]
use -Os

8 years agofix 404 and 403 error handling, improve error message output
Felix Fietkau [Mon, 31 Dec 2012 17:29:35 +0000 (18:29 +0100)]
fix 404 and 403 error handling, improve error message output

8 years agoadd default cgi prefix
Felix Fietkau [Mon, 31 Dec 2012 16:46:11 +0000 (17:46 +0100)]
add default cgi prefix

8 years agoadd default value for conf.realm
Felix Fietkau [Mon, 31 Dec 2012 16:45:08 +0000 (17:45 +0100)]
add default value for conf.realm

8 years agoset a default for script timeout
Felix Fietkau [Mon, 31 Dec 2012 16:44:14 +0000 (17:44 +0100)]
set a default for script timeout

8 years agoset keepalive option after all command line parameters have been processed
Felix Fietkau [Mon, 31 Dec 2012 16:43:07 +0000 (17:43 +0100)]
set keepalive option after all command line parameters have been processed

8 years agoexit if no sockets could be bound
Felix Fietkau [Mon, 31 Dec 2012 16:40:23 +0000 (17:40 +0100)]
exit if no sockets could be bound

8 years agoadd full usage help text
Felix Fietkau [Mon, 31 Dec 2012 16:37:09 +0000 (17:37 +0100)]
add full usage help text

8 years agoadd 404 error support
Felix Fietkau [Mon, 31 Dec 2012 16:27:55 +0000 (17:27 +0100)]
add 404 error support

8 years agouse the new calloc_a function from libubox
Felix Fietkau [Mon, 31 Dec 2012 14:28:17 +0000 (15:28 +0100)]
use the new calloc_a function from libubox

8 years agoadd forking
Felix Fietkau [Sun, 30 Dec 2012 21:13:33 +0000 (22:13 +0100)]
add forking

8 years agoadd more command line options
Felix Fietkau [Sun, 30 Dec 2012 21:09:42 +0000 (22:09 +0100)]
add more command line options

8 years agoclean up uh_urldecode, null-terminate string
Felix Fietkau [Sun, 30 Dec 2012 21:09:34 +0000 (22:09 +0100)]
clean up uh_urldecode, null-terminate string

8 years agoadd config parser
Felix Fietkau [Sun, 30 Dec 2012 20:56:11 +0000 (21:56 +0100)]
add config parser

8 years agolimit default max_requests to 3
Felix Fietkau [Sun, 30 Dec 2012 20:34:23 +0000 (21:34 +0100)]
limit default max_requests to 3

8 years agofix socket value detection
Felix Fietkau [Sun, 30 Dec 2012 19:01:50 +0000 (20:01 +0100)]
fix socket value detection

8 years agofix compile errors
Felix Fietkau [Sun, 30 Dec 2012 18:58:45 +0000 (19:58 +0100)]
fix compile errors

8 years agoInitial implementation
Felix Fietkau [Sun, 30 Dec 2012 18:36:18 +0000 (19:36 +0100)]
Initial implementation