Changeset 10

Show
Ignore:
Timestamp:
02/13/2005 02:30:03 PM (4 years ago)
Author:
jan
Message:

don't append detected index-file to uri.path twice (Bug #3)
added test-case

Files:
4 added
9 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r9 r10  
    5757  (Bug #2) 
    5858 
     59- indexfiles  
     60 
     61  append the detected indexfile only once to uri.path (reported by Thomas 
     62  Seifert) 
     63  (Bug #3) 
     64    
    596506.02.2005 15:16 - 1.3.10 
    6066- fastcgi 
  • configure.in

    r6 r10  
    363363 
    364364AC_CONFIG_FILES([Makefile debian/Makefile src/Makefile doc/Makefile tests/Makefile \ 
    365                  tests/docroot/Makefile tests/docroot/123/Makefile tests/docroot/www/go/Makefile tests/docroot/www/Makefile \ 
     365                 tests/docroot/Makefile \ 
     366                 tests/docroot/123/Makefile \ 
     367                 tests/docroot/www/Makefile \ 
     368                 tests/docroot/www/go/Makefile \ 
     369                 tests/docroot/www/indexfile/Makefile \ 
    366370                 lighttpd.spec distribute.sh cygwin/Makefile cygwin/lighttpd.README 
    367371                 openwrt/Makefile openwrt/control openwrt/lighttpd.mk]) 
  • cygwin/lighttpd.README

    r1 r10  
    3232 
    3333Build instructions: 
    34   unpack lighttpd-1.3.10-<REL>-src.tar.bz2 
     34  unpack lighttpd-1.3.11-<REL>-src.tar.bz2 
    3535    if you use setup to install this src package, it will be 
    3636         unpacked under /usr/src automatically 
    3737  cd /usr/src 
    38   ./lighttpd-1.3.10-<REL>.sh all 
     38  ./lighttpd-1.3.11-<REL>.sh all 
    3939 
    4040This will create: 
    41   /usr/src/lighttpd-1.3.10-<REL>.tar.bz2 
    42   /usr/src/lighttpd-1.3.10-<REL>-src.tar.bz2 
     41  /usr/src/lighttpd-1.3.11-<REL>.tar.bz2 
     42  /usr/src/lighttpd-1.3.11-<REL>-src.tar.bz2 
    4343 
    44 Or use './lighttpd-1.3.10-<REL>.sh prep' to get a patched source directory 
     44Or use './lighttpd-1.3.11-<REL>.sh prep' to get a patched source directory 
    4545 
    4646------------------------------------------- 
  • openwrt/control

    r1 r10  
    11Package: lighttpd 
    2 Version: 1.3.10 
     2Version: 1.3.11 
    33Architecture: mipsel 
    44Maintainer: Jan Kneschke <jan@kneschke.de> 
    5 Source: http://jan.kneschke.de/projects/lighttpd/download/lighttpd-1.3.10.tar.gz 
     5Source: http://jan.kneschke.de/projects/lighttpd/download/lighttpd-1.3.11.tar.gz 
    66Section: net 
    77Priority: optional 
  • openwrt/lighttpd.mk

    r5 r10  
    1111#  For this example we'll use a fairly simple package that compiles easily 
    1212#  and has sources available for download at sourceforge 
    13 LIGHTTPD=lighttpd-1.3.10 
     13LIGHTTPD=lighttpd-1.3.11 
    1414LIGHTTPD_TARGET=.built 
    1515LIGHTTPD_DIR=$(BUILD_DIR)/$(LIGHTTPD) 
     
    1717LIGHTTPD_IPK_DIR=$(BUILD_DIR)/$(LIGHTTPD)-ipk 
    1818 
    19 LIGHTTPD_SITE=http://www.lighttpd.net/download/ 
     19LIGHTTPD_SITE=http://jan.kneschke.de/projects/lighttpd/download/ 
    2020LIGHTTPD_SOURCE=$(LIGHTTPD).tar.gz 
    2121 
  • src/response.c

    r1 r10  
    12461246                                                        break; 
    12471247                                                } 
    1248                                                  
    1249                                                 if (HANDLER_GO_ON == file_cache_get_entry(srv, con, srv->tmp_buf, &(con->fce))) { 
    1250                                                         /* rewrite uri.path to the real path (/ -> /index.php) */ 
    1251                                                         buffer_append_string_buffer(con->uri.path, ds->value); 
    1252                                                          
    1253                                                         break; 
    1254                                                 } 
    12551248                                        } 
    12561249                                         
  • tests/Makefile.am

    r4 r10  
    2020basic-11.sh \ 
    2121bug-urldecode-00.sh \ 
     22bug-03.sh \ 
    2223broken-header-01.sh \ 
    2324content-length-01.sh \ 
  • tests/docroot/www/Makefile.am

    r1 r10  
    11EXTRA_DIST=cgi.php cgi.pl dummydir index.html index.txt phpinfo.php \ 
    22           phpself.php redirect.php cgi-pathinfo.pl phphost.php  
    3 SUBDIRS=go 
     3SUBDIRS=go indexfile 
  • tests/prepare.sh

    r1 r10  
    1212mkdir -p $tmpdir/servers/www.example.org/pages/dummydir/ 
    1313mkdir -p $tmpdir/servers/www.example.org/pages/go/ 
     14mkdir -p $tmpdir/servers/www.example.org/pages/indexfile/ 
    1415mkdir -p $tmpdir/servers/123.example.org/pages/ 
    1516mkdir -p $tmpdir/logs/ 
     
    2324   $srcdir/docroot/www/*.txt $tmpdir/servers/www.example.org/pages/ 
    2425cp $srcdir/docroot/www/go/*.php $tmpdir/servers/www.example.org/pages/go/ 
     26cp $srcdir/docroot/www/indexfile/*.php $tmpdir/servers/www.example.org/pages/indexfile/ 
    2527cp $srcdir/docroot/123/*.txt \ 
    2628   $srcdir/docroot/123/*.html \