Browse files

s/methodIlligal/methodIllegal/

Signed-off-by: Bluebie the Pony <blueberry@creativepony.com>
  • Loading branch information...
1 parent d6a6ff2 commit caa0846350b8aa67746b81b1925434fded813dd0 @beppu beppu committed with Bluebie the Pony Aug 16, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 campy.js
View
4 campy.js
@@ -22,7 +22,7 @@ var Controller = new Class({
var originalCookies = $unlink(copy.cookies = $H(copy.readCookies()));
copy.response = response; copy.body = '';
copy.headers = $H(this.defaultHeaders); copy.status = 200;
- if (Controller.prototype[method] || method.test(/^_/)) method = 'methodIlligal';
+ if (Controller.prototype[method] || method.test(/^_/)) method = 'methodIllegal';
var returned = (copy[method] || copy.methodNotAvailable).run(args, copy);
if (!copy.response.finished) {
var body = (returned || copy.body || '').toString();
@@ -109,7 +109,7 @@ var Controller = new Class({
this.headers.Location = (new URI(uri, {base: base})).toString();
},
- methodIlligal: function(components) {
+ methodIllegal: function(components) {
this.status = 404; return 'The requested method is not allowed';
},

0 comments on commit caa0846

Please sign in to comment.