Skip to content
This repository

Fix matchType references with contentTypeMatch #7

Merged
merged 1 commit into from almost 3 years ago

2 participants

Josh Huckabee Tom Gallacher
Josh Huckabee

This just fixes the documentation reference to matchType which should be contentTypeMatch.

Tom Gallacher tomgco merged commit 8ba40c2 into from
Tom Gallacher tomgco closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Aug 11, 2011
Josh Huckabee jhuckabee Fix matchType references with contentTypeMatch c50384c
This page is out of date. Refresh to see the latest.

Showing 2 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 2 README.md
  2. +1 1  lib/staticGzip.js
4 README.md
Source Rendered
@@ -20,7 +20,7 @@ In your express/connect server setup, use as follows:
20 20
21 21 Options:
22 22
23   -- `matchType` - A regular expression tested against the Content-Type header to determine whether the response should be gzipped or not. The default value is `/text|javascript|json/`.
  23 +- `contentTypeMatch` - A regular expression tested against the Content-Type header to determine whether the response should be gzipped or not. The default value is `/text|javascript|json/`.
24 24 - `maxAge` - cache-control max-age directive, defaulting to 1 day
25 25 - `clientMaxAge` - browser cache-control max-age directive, defaulting to 1 week
26 26
@@ -55,4 +55,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
55 55 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
56 56 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
57 57 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
58   -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  58 +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2  lib/staticGzip.js
@@ -63,7 +63,7 @@ var gzippo = function(filename, charset, callback) {
63 63 *
64 64 * - `maxAge` cache-control max-age directive, defaulting to 1 day
65 65 * - `clientMaxAge` client cache-control max-age directive, defaulting to 1 week
66   - * - `matchType` - A regular expression tested against the Content-Type header to determine whether the response
  66 + * - `contentTypeMatch` - A regular expression tested against the Content-Type header to determine whether the response
67 67 * should be gzipped or not. The default value is `/text|javascript|json/`.
68 68 *
69 69 * Examples:

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.