Skip to content

Commit

Permalink
Remove a parameter from calls to the static server.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoglan committed Mar 30, 2012
1 parent c5b2f83 commit 9238972
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion javascript/adapters/node_adapter.js
Expand Up @@ -124,7 +124,7 @@ Faye.NodeAdapter = Faye.Class({
self = this;

if (this._static.test(requestUrl.pathname))
return this._static.serve(requestUrl.pathname, request, response);
return this._static.call(request, response);

if (requestMethod === 'OPTIONS')
return this._handleOptions(request, response);
Expand Down
3 changes: 2 additions & 1 deletion javascript/adapters/static_server.js
Expand Up @@ -14,7 +14,8 @@ Faye.StaticServer = Faye.Class({
return this._pathRegex.test(pathname);
},

serve: function(pathname, request, response) {
call: function(request, response) {
var pathname = url.parse(request.url, true).pathname;
pathname = path.basename(pathname);
pathname = this._pathMap[pathname] || pathname;

Expand Down

0 comments on commit 9238972

Please sign in to comment.