Skip to content
Browse files

fix ':' in urls causing a bug

  • Loading branch information...
1 parent 0e009df commit 6ec772259c9da8833cc77c33778b7534713df0d3 cloudhead committed Jul 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http-console.js
View
2 lib/http-console.js
@@ -151,7 +151,7 @@ this.Console.prototype = new(function () {
case 'q':
process.exit(0);
}
- } else if (match = command.match(/([a-zA-Z-]+):\s*(.*)/)) {
+ } else if (match = command.match(/^([a-zA-Z-]+):\s*(.*)/)) {
if (match[2]) {
this.headers[match[1]] = match[2];
} else {

0 comments on commit 6ec7722

Please sign in to comment.
Something went wrong with that request. Please try again.