aboutsummaryrefslogtreecommitdiff
path: root/ws.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-26 00:09:13 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-26 00:09:13 +0100
commit71e771e95b4477c19def4122b085150c4992ca62 (patch)
treed03df790daaeea365bd882b1237eff92f6984a72 /ws.go
parent24ba33d974cf651df195d2912b00238e6eeb2ed8 (diff)
Revert split hostport
Diffstat (limited to 'ws.go')
-rw-r--r--ws.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/ws.go b/ws.go
index a5c5d2f..d9bfc3d 100644
--- a/ws.go
+++ b/ws.go
@@ -28,16 +28,6 @@ func (p *WebSocketProxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
p.Director(r)
- _, port, err := net.SplitHostPort(r.URL.Host)
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
-
- if port == "" {
- r.URL.Host += ":http"
- }
-
d, err := net.Dial("tcp", r.URL.Host)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)