Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Serve source map as JSON.

  • Loading branch information...
commit c5b2f83635a52bf55a2f72f80fa8209a814cb6bb 1 parent 494d528
@jcoglan jcoglan authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  javascript/adapters/static_server.js
View
3  javascript/adapters/static_server.js
@@ -32,7 +32,8 @@ Faye.StaticServer = Faye.Class({
return response.end();
}
- var headers = Faye.extend({}, Faye.NodeAdapter.prototype.TYPE_SCRIPT),
+ var type = /\.js$/.test(pathname) ? 'TYPE_SCRIPT' : 'TYPE_JSON',
+ headers = Faye.extend({}, Faye.NodeAdapter.prototype[type]),
ims = request.headers['if-modified-since'];
headers['Content-Length'] = '0';
Please sign in to comment.
Something went wrong with that request. Please try again.