Glenn Strauss
dc1675ea32
[core] fix POST with chunked request body ( fixes #2854 )
...
(thx the_jk)
x-ref:
"chunked transfer encoding in request body only works for tiny chunks"
https://redmine.lighttpd.net/issues/2854
2018-01-13 22:53:19 -05:00
Glenn Strauss
37dac9a23c
[core] support Expect: 100-continue with HTTP/1.1 ( fixes #377 , #1017 , #1953 , #2438 )
...
support Expect: 100-continue with HTTP/1.1 requests
Ignore config option server.reject-expect-100-with-417;
server.reject-expect-100-with-417 will be removed in a future release.
x-ref:
"Incorrect handling of the 100 (Continue) Status"
https://redmine.lighttpd.net/issues/377
"'Expect' header gives HTTP error 417"
https://redmine.lighttpd.net/issues/1017
"Improve DAV support to be able to handle git as a client"
https://redmine.lighttpd.net/issues/1953
"Change server.reject-expect-100-with-417 from flag to regular expression matching the URL"
https://redmine.lighttpd.net/issues/2438
2017-01-31 14:36:15 -05:00
Glenn Strauss
4d7f5737f1
[core] support Transfer-Encoding: chunked req body ( fixes #2156 )
...
support Transfer-Encoding: chunked request body in conjunction with
server.stream-request-body = 0
dynamic handlers will still return 411 Length Required if
server.stream-request-body = 1 or 2 (!= 0)
since CGI-like env requires CONTENT_LENGTH be set
(and mod_proxy currently sends HTTP/1.0 requests to backends,
and Content-Length recommended for robust interaction with backend)
x-ref:
"request: support Chunked Transfer Coding for HTTP PUT"
https://redmine.lighttpd.net/issues/2156
2016-12-16 16:58:04 -05:00
Stefan Bühler
d7c90814c3
[tests] add cleanup.sh to cmake test runs, reset SLOWREQUEST in request.t
...
From: Stefan Bühler <stbuehler@web.de>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2932 152afb58-edef-0310-8abb-c4023f1b3aa9
2014-01-10 12:05:12 +00:00
Stefan Bühler
6200764f05
tests: check different combination of empty values, leading/trailing spaces and commas in the Connection header
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2859 152afb58-edef-0310-8abb-c4023f1b3aa9
2012-11-21 12:01:42 +00:00
Stefan Bühler
e05f1b3eec
Add static-file.disable-pathinfo option to prevent handling of urls like .../secret.php/image.jpg as static file
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2803 152afb58-edef-0310-8abb-c4023f1b3aa9
2011-08-30 22:13:59 +00:00
Stefan Bühler
bf0d57d505
two additional test cases for absolute http(s) uris in the request line
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2787 152afb58-edef-0310-8abb-c4023f1b3aa9
2011-04-04 22:39:48 +00:00
Stefan Bühler
48fea28651
Fix request parser to handle packets with splitted \r\n\r\n ( fixes #2105 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2696 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-11-29 14:13:13 +00:00
Stefan Bühler
3af67d1392
Ignore multiple "If-None-Match" headers (only use first one, fixes #753 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2528 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-06-11 10:18:36 +00:00
Stefan Bühler
ac92ea3616
Allow all http status codes by default; disable body only for 204,205 and 304; generate error pages for 4xx and 5xx ( #1639 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2154 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 19:10:42 +00:00
Elan Ruusamäe
c65ad47a55
- change s/// separator that it doesn't confuse vim
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2027 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-15 22:03:59 +00:00
Jan Kneschke
30748f202c
fixed timestamps for 32bit time_t which wraps at 2038
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1956 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-21 15:05:50 +00:00
Jan Kneschke
f67cdb67df
fixed handling of duplicate If-Modified-Since to return 304
...
- don't append the second string to the first, but free it instead
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1947 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-18 11:14:12 +00:00
Jan Kneschke
5bc539b63e
don't send a Content-Length for 1xx, 204 and 304 ( fixes #1002 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1946 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-18 10:40:20 +00:00
Jan Kneschke
9bc4c2a025
added testcases for #1286 and #1287
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1929 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-17 21:50:05 +00:00
Marcus Rückert
b8df99f3db
- a few more whitespace cleanups
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1374 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-05 00:09:51 +00:00
Jan Kneschke
096ec7f1ca
OPTIONS may have a content-length
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1024 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-04 17:10:13 +00:00
Jan Kneschke
bd8e6919d2
added tests for possible crashes
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@974 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-01 11:35:08 +00:00
Jan Kneschke
580823f791
forbid Content-Length for GET, HEAD or OPTIONS requests
...
allow duplicate If-Modified-Since headers if they are equal
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@907 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-01-03 13:59:46 +00:00
Jan Kneschke
a77f7a90d8
the range-request options was not handled at all, added test case
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@781 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-10-05 10:40:00 +00:00
Jan Kneschke
3ebc17571a
find perl at runtime
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@670 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-09-01 11:44:57 +00:00
Jan Kneschke
7988661090
added tests for keep-alive and setenv and passed a ARRAY ref instead of a HASH ref
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@654 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-31 12:55:44 +00:00
Jan Kneschke
877161c067
switch to LigtyTest module
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@394 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-26 10:27:41 +00:00
Jan Kneschke
7a25f1b5f5
Unified all tests to use the LighyTest framework
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@388 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-15 09:37:18 +00:00
Jan Kneschke
40e8c6714a
seperated the tests for each section and let run-tests.pl use Test::Harness
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@72 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-02 11:27:02 +00:00