Skip to content

Commit d3b455e

Browse files
committed
foo
1 parent 94cb60a commit d3b455e

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"net/http"
1111
"time"
1212

13-
"github.com/jbowes/httpsig"
13+
"github.com/ghoti143/httpsig"
1414
)
1515

1616
const secret = "support-your-local-cat-bonnet-store"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/jbowes/httpsig
1+
module github.com/ghoti143/httpsig
22

33
go 1.16

httpsig.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"bytes"
99
"crypto/ecdsa"
1010
"crypto/rsa"
11+
"fmt"
1112
"io/ioutil"
1213
"net/http"
1314
"time"
@@ -68,6 +69,9 @@ func NewSignTransport(transport http.RoundTripper, opts ...signOption) http.Roun
6869
defer r.Body.Close()
6970

7071
if n != 0 {
72+
fmt.Println("body length", n)
73+
//TODO this breaks the request
74+
//net/http: HTTP/1.x transport connection broken: http: ContentLength=44 with Body length 0
7175
r.Body = ioutil.NopCloser(bytes.NewReader(b.Bytes()))
7276
}
7377
}

0 commit comments

Comments
 (0)