Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds HEAD request support.

  • Loading branch information...
commit 7e8acd1c83a361e807e717ecdb7e309852334c1a 1 parent 6f8cbe2
@dsc authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  compiler.co
  2. +2 −2 compiler.js
View
2  compiler.co
@@ -43,7 +43,7 @@ exports.DEFAULTS = DEFAULTS =
cascade : false # invoke all compilers that match? otherwise, only first.
ignore : /\.(jpe?g|gif|png)$/i # Requests matching this pattern are ignored, and no compiler matching occurs.
resolve_index : false # if true-y, resolve directories to this filename: false | true => 'index.html' | str
- allowed_methods : [ 'GET' ] # HTTP methods compiler should process
+ allowed_methods : [ 'GET', 'HEAD' ] # HTTP methods compiler should process
# TODO (maybe)
# on : null # event handlers to add: { event : handler, ... }
View
4 compiler.js
@@ -39,7 +39,7 @@ exports.DEFAULTS = DEFAULTS = {
cascade: false,
ignore: /\.(jpe?g|gif|png)$/i,
resolve_index: false,
- allowed_methods: ['GET'],
+ allowed_methods: ['GET', 'HEAD'],
options: {
all: {}
}
@@ -957,4 +957,4 @@ function import$(obj, src){
var own = {}.hasOwnProperty;
for (var key in src) if (own.call(src, key)) obj[key] = src[key];
return obj;
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.