From 86de420a7b8e3404f7ae5ec86c0abed156307c05 Mon Sep 17 00:00:00 2001 From: Suhaib Mujahid Date: Mon, 20 Jan 2020 19:20:14 -0500 Subject: [PATCH 1/2] Match the BaseURL to the AppsTransport --- transport.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport.go b/transport.go index b37bf44..5112ae8 100644 --- a/transport.go +++ b/transport.go @@ -85,7 +85,7 @@ func New(tr http.RoundTripper, appID, installationID int64, privateKey []byte) ( // NewFromAppsTransport returns a Transport using an existing *AppsTransport. func NewFromAppsTransport(atr *AppsTransport, installationID int64) *Transport { return &Transport{ - BaseURL: apiBaseURL, + BaseURL: atr.BaseURL, Client: &http.Client{Transport: atr.tr}, tr: atr.tr, appID: atr.appID, From d709afde10175e395e50fddc6663e02f31a2ef54 Mon Sep 17 00:00:00 2001 From: Suhaib Mujahid Date: Mon, 20 Jan 2020 19:20:42 -0500 Subject: [PATCH 2/2] Run go mod tidy --- go.sum | 2 -- 1 file changed, 2 deletions(-) diff --git a/go.sum b/go.sum index dcd1072..db0431d 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,5 @@ github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -12,7 +11,6 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 h1:VklqNMn3ovrHsnt90Pveol golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=