@cryptotaxi247 / kubo / commits / dc6423f7d

gomod/gx: use correct go-is-domain

License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

Jakub Sztandera committed Mar 3, 2019 at 23:09 UTC dc6423f7de68d06a92cdf03dd089caa2c87b8174
4 files changed +7 -3
core/corehttp/gateway_test.go
+3 -2
@@ -21,7 +21,7 @@ import (
21 config "github.com/ipfs/go-ipfs-config"
22 files "github.com/ipfs/go-ipfs-files"
23 path "github.com/ipfs/go-path"
24 - "github.com/ipfs/interface-go-ipfs-core"
24 + iface "github.com/ipfs/interface-go-ipfs-core"
25 "github.com/ipfs/interface-go-ipfs-core/options"
26 nsopts "github.com/ipfs/interface-go-ipfs-core/options/namesys"
27 ci "github.com/libp2p/go-libp2p-crypto"
@@ -219,11 +219,12 @@ func TestGatewayGet(t *testing.T) {
219 if contentType != "text/plain; charset=utf-8" {
220 t.Errorf("expected content type to be text/plain, got %s", contentType)
221 }
222 + body, err := ioutil.ReadAll(resp.Body)
223 if resp.StatusCode != test.status {
224 t.Errorf("(%d) got %d, expected %d from %s", i, resp.StatusCode, test.status, urlstr)
225 + t.Errorf("Body: %s", body)
226 continue
227 }
226 - body, err := ioutil.ReadAll(resp.Body)
228 if err != nil {
229 t.Fatalf("error reading response from %s: %s", urlstr, err)
230 }
core/corehttp/ipns_hostname.go
+1 -1
@@ -9,8 +9,8 @@ import (
9 core "github.com/ipfs/go-ipfs/core"
10 namesys "github.com/ipfs/go-ipfs/namesys"
11
12 + isd "github.com/gxed/go-is-domain"
13 nsopts "github.com/ipfs/interface-go-ipfs-core/options/namesys"
13 - isd "github.com/jbenet/go-is-domain"
14 )
15
16 // IPNSHostnameOption rewrites an incoming request if its Host: header contains
go.mod
+1
@@ -13,6 +13,7 @@ require (
13 github.com/fatih/color v1.7.0 // indirect
14 github.com/fsnotify/fsnotify v1.4.7
15 github.com/gogo/protobuf v1.2.1
16 + github.com/gxed/go-is-domain v0.0.0-20160921144106-bcb935f9c56d
17 github.com/hashicorp/golang-lru v0.5.1
18 github.com/hsanjuan/go-libp2p-gostream v0.0.0-20190227195646-68f5153d3e40 // indirect
19 github.com/hsanjuan/go-libp2p-http v0.0.0-20190227195650-43dc52949539
go.sum
+2
@@ -72,6 +72,8 @@ github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGa
72 github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
73 github.com/gorilla/websocket v1.4.0 h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q=
74 github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
75 +github.com/gxed/go-is-domain v0.0.0-20160921144106-bcb935f9c56d h1:eIqPbEsH4GABu64Vsbe1OzTrHD3z3SKaL9vEG9FnW6I=
76 +github.com/gxed/go-is-domain v0.0.0-20160921144106-bcb935f9c56d/go.mod h1:cCBMcTE/W8VcVst8Jz0NZl7F3VPUTbmExWqGH0onVqk=
77 github.com/gxed/go-shellwords v1.0.3 h1:2TP32H4TAklZUdz84oj95BJhVnIrRasyx2j1cqH5K38=
78 github.com/gxed/go-shellwords v1.0.3/go.mod h1:N7paucT91ByIjmVJHhvoarjoQnmsi3Jd3vH7VqgtMxQ=
79 github.com/gxed/hashland/keccakpg v0.0.1 h1:wrk3uMNaMxbXiHibbPO4S0ymqJMm41WiudyFSs7UnsU=