mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +08:00
use custom headers for raw
This commit is contained in:
parent
6ca31bc252
commit
55769d9a40
4 changed files with 28 additions and 11 deletions
|
|
@ -35,7 +35,7 @@ func GitReq(ctx context.Context, c *app.RequestContext, u string, cfg *config.Co
|
|||
HandleError(c, fmt.Sprintf("Failed to create request: %v", err))
|
||||
return
|
||||
}
|
||||
setRequestHeaders(c, req)
|
||||
setRequestHeaders(c, req, "clone")
|
||||
//removeWSHeader(req)
|
||||
AuthPassThrough(c, cfg, req)
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ func GitReq(ctx context.Context, c *app.RequestContext, u string, cfg *config.Co
|
|||
HandleError(c, fmt.Sprintf("Failed to create request: %v", err))
|
||||
return
|
||||
}
|
||||
setRequestHeaders(c, req)
|
||||
setRequestHeaders(c, req, "clone")
|
||||
//removeWSHeader(req)
|
||||
AuthPassThrough(c, cfg, req)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue