removed requirement of path package
Knut Ahlers committed
May 21, 2015 at 08:51 UTC
8df8737f6aea0d407db13b30a3b108549a356462
1 file changed
+1
-2
core/corehttp/ipns_hostname.go
+1
-2
@@ -2,7 +2,6 @@ package corehttp
2
3
import (
4
"net/http"
5
- "path"
5
"strings"
6
7
isd "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-is-domain"
@@ -24,7 +23,7 @@ func IPNSHostnameOption() ServeOption {
23
if len(host) > 0 && isd.IsDomain(host) {
24
name := "/ipns/" + host
25
if _, err := n.Namesys.Resolve(ctx, name); err == nil {
27
- r.URL.Path = path.Join("/ipns/", host) + r.URL.Path
26
+ r.URL.Path = name + r.URL.Path
27
}
28
}
29
childMux.ServeHTTP(w, r)