Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
support webroot - relative postscript files
  • Loading branch information
pwfisher committed Mar 19, 2013
1 parent cd3a633 commit 888407f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node-static.js
Expand Up @@ -37,7 +37,7 @@ exports.Server = function (root, options) {
* @var {string} postscript File to append to html responses. Both a 'postscript' in the dictionary sense,
* and a feature well-suited to POST-load content with a SCRIPT.
*/
this.postscript = this.options.postscript || false;
this.postscript = this.options.postscript ? this.resolve(this.options.postscript) : false;

if ('serverInfo' in this.options) {
this.serverInfo = this.options.serverInfo.toString();
Expand Down

0 comments on commit 888407f

Please sign in to comment.