7 Commits

Author SHA1 Message Date
Roman Shtylman
4ae493ae44 v1.8.1 2016-01-20 13:32:02 -08:00
Roman Shtylman
f487effe3a update History 2016-01-20 13:31:46 -08:00
Roman Shtylman
333af2b08f Merge pull request #108 from joshuaxls/master
Fix bug w/ HeaderHostTransformer and binary data
2016-01-20 13:29:50 -08:00
Joshua Slayton
b32041d8aa fix unnecessary binary->string conversion 2016-01-20 13:11:40 -08:00
Roman Shtylman
649de1b840 Merge pull request #107 from TooTallNate/patch-1
README: add missing back tick
2016-01-09 07:42:54 -08:00
Nathan Rajlich
f791217756 README: add missing back tick 2016-01-08 15:58:02 -08:00
Roman Shtylman
cce9d1490a update travis to node 4 and fix travis badge 2015-11-04 20:43:17 -08:00
5 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,4 @@
language: node_js language: node_js
sudo: false
node_js: node_js:
- "0.10" - "4"

View File

@@ -1,3 +1,7 @@
# 1.8.1 (2016-01-20)
* fix bug w/ HostHeaderTransformer and binary data
# 1.8.0 (2015-11-04) # 1.8.0 (2015-11-04)
* pass socket errors up to top level * pass socket errors up to top level

View File

@@ -1,4 +1,6 @@
# localtunnel [![Build Status](https://travis-ci.org/defunctzombie/localtunnel.png?branch=master)](https://travis-ci.org/defunctzombie/localtunnel) # # localtunnel
[![Build Status](https://travis-ci.org/localtunnel/localtunnel.svg?branch=master)](https://travis-ci.org/localtunnel/localtunnel)
localtunnel exposes your localhost to the world for easy testing and sharing! No need to mess with DNS or deploy just to have others test out your changes. localtunnel exposes your localhost to the world for easy testing and sharing! No need to mess with DNS or deploy just to have others test out your changes.
@@ -69,7 +71,7 @@ The `tunnel` instance returned to your callback emits the following events
|error|err|fires when an error happens on the tunnel| |error|err|fires when an error happens on the tunnel|
|close||fires when the tunnel has closed| |close||fires when the tunnel has closed|
The `tunnel instance has the following methods The `tunnel` instance has the following methods
|method|args|description| |method|args|description|
|----|----|----| |----|----|----|

View File

@@ -19,11 +19,11 @@ util.inherits(HeaderHostTransformer, Transform);
HeaderHostTransformer.prototype._transform = function (chunk, enc, cb) { HeaderHostTransformer.prototype._transform = function (chunk, enc, cb) {
var self = this; var self = this;
chunk = chunk.toString();
// after replacing the first instance of the Host header // after replacing the first instance of the Host header
// we just become a regular passthrough // we just become a regular passthrough
if (!self.replaced) { if (!self.replaced) {
chunk = chunk.toString();
self.push(chunk.replace(/(\r\nHost: )\S+/, function(match, $1) { self.push(chunk.replace(/(\r\nHost: )\S+/, function(match, $1) {
self.replaced = true; self.replaced = true;
return $1 + self.host; return $1 + self.host;

View File

@@ -2,7 +2,7 @@
"author": "Roman Shtylman <shtylman@gmail.com>", "author": "Roman Shtylman <shtylman@gmail.com>",
"name": "localtunnel", "name": "localtunnel",
"description": "expose localhost to the world", "description": "expose localhost to the world",
"version": "1.8.0", "version": "1.8.1",
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",