summaryrefslogtreecommitdiff
path: root/internal/httpclient
diff options
context:
space:
mode:
Diffstat (limited to 'internal/httpclient')
-rw-r--r--internal/httpclient/transport.go (renamed from internal/httpclient/sign.go)7
1 files changed, 0 insertions, 7 deletions
diff --git a/internal/httpclient/sign.go b/internal/httpclient/transport.go
index eff20be49..350d24fab 100644
--- a/internal/httpclient/sign.go
+++ b/internal/httpclient/transport.go
@@ -21,7 +21,6 @@ import (
"net/http"
"time"
- "codeberg.org/gruf/go-byteutil"
"github.com/superseriousbusiness/gotosocial/internal/gtscontext"
)
@@ -45,12 +44,6 @@ func (t *signingtransport) RoundTrip(r *http.Request) (*http.Response, error) {
r.Header.Del("Signature")
r.Header.Del("Digest")
- // Rewind body reader and content-length if set.
- if rc, ok := r.Body.(*byteutil.ReadNopCloser); ok {
- rc.Rewind() // set len AFTER rewind
- r.ContentLength = int64(rc.Len())
- }
-
// Sign the outgoing request.
if err := sign(r); err != nil {
return nil, err