Permalink
Browse files

Update from Google Code SVN

Zip64 and support for spaces in URLs.
  • Loading branch information...
1 parent 0cc6eb3 commit 911b447c2b96bf28cd89d59e00eae3774d8a7897 Evan Miller committed Jan 27, 2010
Showing with 666 additions and 389 deletions.
  1. +8 −2 CHANGES
  2. +6 −3 README
  3. +244 −147 ngx_http_zip_file.c
  4. +70 −6 ngx_http_zip_file_format.h
  5. +130 −172 ngx_http_zip_module.c
  6. +20 −22 ngx_http_zip_module.h
  7. +68 −27 ngx_http_zip_parsers.c
  8. +38 −2 ngx_http_zip_parsers.rl
  9. +3 −2 t/nginx.conf
  10. +1 −0 t/nginx/html/file1 with spaces.txt
  11. +2 −0 t/nginx/html/zip-spaces.txt
  12. +76 −6 t/ziptest.pl
View
10 CHANGES
@@ -1,6 +1,12 @@
-Changes with mod_zip 1.1.5 13 Aug 2009
+Changes with mod_zip 1.1.5 03 Sep 2009
- *) Bugfix: compatibility with nginx 0.7.25 and later
+ *) Feature: "If-Range" client header is compared to "Last-Modified" and
+ "ETag" from the upstream file-list server; if there is a match, the
+ "Range" client header is honored, otherwise 200 OK is returned.
+ Using "ETag" requires nginx 0.8.10 or later, or included patch.
+
+ *) Bugfix: compatibility with nginx 0.7.25 and later (but earlier
+ versions are no longer supported)
*) Bugfix: Range works with local, Memcached, and FastCGI files
View
9 README
@@ -10,7 +10,7 @@ To install, compile nginx with the following option:
--add-module=/path/to/this/directory
-nginx 0.6.17 or later is required.
+nginx 0.7.25 or later is required.
The module is activated when the original response (presumably from an
upstream) includes the following HTTP header:
@@ -31,9 +31,12 @@ Files are retrieved and encoded in order. If a file cannot be found or the file
request returns any sort of error, the download is aborted.
The CRC-32 is optional. Put "-" if you don't know the CRC-32; note that in this
-case mod_zip will disable support the "Range" header.
+case mod_zip will disable support for the "Range" header.
-Tip: add a header "Content-Disposition: attachment; filename=foobar.zip" in the
+Tip: Add a header "Content-Disposition: attachment; filename=foobar.zip" in the
upstream response if you would like the client to name the file "foobar.zip"
+Tip 2: To save bandwidth, add a "Last-Modified" header in the upstream response;
+mod_zip will then honor the "If-Range" header from clients.
+
Questions/patches may be directed to Evan Miller, emmiller@gmail.com.
Oops, something went wrong.

0 comments on commit 911b447

Please sign in to comment.