Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove a parameter from calls to the static server.

  • Loading branch information...
commit 923897210e2472070b2a9cdeca56e2ef5b6745d0 1 parent c5b2f83
@jcoglan jcoglan authored
View
2  javascript/adapters/node_adapter.js
@@ -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);
View
3  javascript/adapters/static_server.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.