Skip to content

Commit 1ad124d

Browse files
lakhansamanisiddharthlatest
authored andcommitted
feat: support custom headers (#35)
1 parent a2508e0 commit 1ad124d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

middleware/interceptor/interceptor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"net/url"
77
"os"
88

9-
"github.com/appbaseio/arc/middleware"
109
"github.com/appbaseio/arc/errors"
10+
"github.com/appbaseio/arc/middleware"
1111
"github.com/appbaseio/arc/util"
1212
)
1313

@@ -68,6 +68,7 @@ func redirectRequest(r *http.Request) (*http.Request, error) {
6868
if err != nil {
6969
return nil, err
7070
}
71+
redirectRequest.Header = r.Header
7172

7273
// set request content type
7374
v := redirectRequest.Header.Get("Content-Type")

0 commit comments

Comments
 (0)