Skip to content

Commit

Permalink
Use safe colors to avoid header problems
Browse files Browse the repository at this point in the history
Use the safe mode of the "colors" module.
Extending the string prototype leads to problems
with union's way of setting HTTP headers.
  • Loading branch information
Leon Weidauer authored and BigBlueHat committed May 1, 2017
1 parent ef15579 commit a3ace13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/http-server
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

'use strict';

var colors = require('colors'),
var colors = require('colors/safe'),
os = require('os'),
httpServer = require('../lib/http-server'),
portfinder = require('portfinder'),
Expand Down

0 comments on commit a3ace13

Please sign in to comment.