Permalink
Browse files

Serve source map as JSON.

  • Loading branch information...
jcoglan committed Mar 30, 2012
1 parent 494d528 commit c5b2f83635a52bf55a2f72f80fa8209a814cb6bb
Showing with 2 additions and 1 deletion.
  1. +2 −1 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';

0 comments on commit c5b2f83

Please sign in to comment.