| 1 |
Revision history for Perl extension HTTP::Server::Simple::Static |
| 2 |
|
| 3 |
0.14 Sat, 28 Oct 2017 14:53:00 +0100 |
| 4 |
|
| 5 |
- Further improvements to the path handling to fix a bug with |
| 6 |
specifying the base directory using a relative path. Closes: |
| 7 |
https://rt.cpan.org/Public/Bug/Display.html?id=123428 |
| 8 |
|
| 9 |
0.13 Sun, 08 Oct 2017 09:38:00 +0100 |
| 10 |
|
| 11 |
- Reworked file path handling to prevent attacker traversing |
| 12 |
out of the base directory. Closes: |
| 13 |
https://rt.cpan.org/Ticket/Display.html?id=123178 |
| 14 |
|
| 15 |
0.12 Thu, 28 Apr 2016 06:30:00 +0100 |
| 16 |
|
| 17 |
- Moved POD tests to xt/ directory so they are not run for |
| 18 |
normal user installs. |
| 19 |
|
| 20 |
0.11 Wed, 27 Apr 2016 16:01:00 +0100 |
| 21 |
|
| 22 |
- Added a mapping for *.js files to a Content-Type of |
| 23 |
application/javascript |
| 24 |
|
| 25 |
0.10 Wed, 27 Apr 2016 14:45:00 +0100 |
| 26 |
|
| 27 |
- Reworked how the value for the Content-Type header is |
| 28 |
selected. Simple regexp matching on the path suffix is |
| 29 |
used for *.html?, *.css and *.txt files. Any other files |
| 30 |
are checked using File::LibMagic as before. Closes: |
| 31 |
https://rt.cpan.org/Ticket/Display.html?id=113980 and |
| 32 |
https://rt.cpan.org/Ticket/Display.html?id=91321 |
| 33 |
|
| 34 |
0.09 Thu, 15 Aug 2013 09:08:00 +0100 |
| 35 |
|
| 36 |
- Added support for clients which send an If-Modified-Since |
| 37 |
HTTP header in the request. We return a 304 if the file |
| 38 |
has not been changed. |
| 39 |
|
| 40 |
0.08 Wed, 14 Aug 2013 17:00:00 +0100 |
| 41 |
|
| 42 |
- Replaced File::MMagic and MIME::Types with File::LibMagic |
| 43 |
which should be more reliable. |
| 44 |
Closes: http://rt.cpan.org/Public/Bug/Display.html?id=39598 |
| 45 |
- Improved docs and code example. |
| 46 |
Closes: http://rt.cpan.org/Public/Bug/Display.html?id=37701 |
| 47 |
- Added support for the Last-Modified and Date HTTP headers, |
| 48 |
this consequently adds a new dependency on HTTP::Date. |
| 49 |
- Added support for not sending the content when the request |
| 50 |
method is HEAD. |
| 51 |
|
| 52 |
0.07 Wed, 19 Mar 2008 18:41:56 +0000 |
| 53 |
|
| 54 |
- Only serve files not directories, thanks to Bradley Bailey |
| 55 |
for the report. |
| 56 |
Closes http://rt.cpan.org/Public/Bug/Display.html?id=34068 |
| 57 |
- Fixed url handling for requests from IE/ |
| 58 |
Closes http://rt.cpan.org/Public/Bug/Display.html?id=27650 |
| 59 |
|
| 60 |
0.06 Mon, 23 Jul 2007 10:42:37 +0100 |
| 61 |
|
| 62 |
- Fixed problem with handling empty files where they have no |
| 63 |
file extension or it is not recognised by MIME::Types. |
| 64 |
Thanks to Mark Stosberg for the report |
| 65 |
|
| 66 |
0.05 Mon, 6 Nov 2006 09:29:42 +0000 |
| 67 |
|
| 68 |
- Applied patch from Max Maischein to use the binmode function |
| 69 |
rather than the binmode method of IO::File, which only exists |
| 70 |
in newer versions of that module which we were not requiring. |
| 71 |
|
| 72 |
0.04 Thu, 20 Jul 2006 12:03:21 +0100 |
| 73 |
|
| 74 |
- Applied patch from Tom Hukins to make |
| 75 |
HTTP::Server::Simple::Static RFC compliant. Section 4.1 of |
| 76 |
RFC 2616, "Message Types", states that header fields should |
| 77 |
be separated by CRLF. This is done in the manner recommended |
| 78 |
in perlport(1). |
| 79 |
- Also applied patch from Tom Hukins to add the "use bytes" |
| 80 |
pragma to ensure Content-Length contains the number of bytes |
| 81 |
in the response body, not the number of characters. |
| 82 |
|
| 83 |
0.03 Tue, 13 Jun 2006 11:00:58 +0100 |
| 84 |
- Fixed documentation to show that HTTP::Server::Simple::CGI |
| 85 |
should be used as the base class. |
| 86 |
Closes: http://rt.cpan.org/Public/Bug/Display.html?id=18682 |
| 87 |
- Switched to using IO::File for the file handling, also |
| 88 |
turned on binmode to help those on Windows serve images, etc. |
| 89 |
|
| 90 |
0.02 Wed Mar 29 12:00:00 2005 |
| 91 |
- close fh after reading content. (Max Maischein) |
| 92 |
- fixed content-type header (Kang-min Liu & Max) |
| 93 |
|
| 94 |
0.01 Thu Jan 06 21:40:02 2005 |
| 95 |
- forked from patch to HTTP::Server::Simple |