Skip to content
Snippets Groups Projects
Commit 8bcb8a78 authored by IhorBondartsov's avatar IhorBondartsov
Browse files

del header

parent 2796a0c1
Branches
Tags
1 merge request!5Add req integr
......@@ -2,13 +2,13 @@ package tracker
import (
"context"
"fmt"
"net/http"
"time"
"github.com/powerman/narada-go/narada"
"encoding/json"
"gitlab.qarea.org/tgms/collabms/entities"
"gitlab.qarea.org/tgms/collabms/entities/feature"
"gitlab.qarea.org/tgms/tgmshttp"
......@@ -271,18 +271,3 @@ func (c *Client) TestRequest(ctx context.Context, tr entities.Tracker) error {
func (c *Client) RequiredIntegration(context.Context, entities.Tracker) (bool, error) {
return entities.RequiredIntegration, nil
}
func copyHeadersOnRedirect(req *http.Request, via []*http.Request) error {
if len(via) >= 10 {
return fmt.Errorf("too many redirects")
}
if len(via) == 0 {
return nil
}
for attr, val := range via[0].Header {
if _, ok := req.Header[attr]; !ok {
req.Header[attr] = val
}
}
return nil
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment