mirror of
https://github.com/fatedier/frp.git
synced 2025-01-22 05:48:47 +01:00
fix: send server plugin request as json (#1690)
This commit is contained in:
parent
1db091b381
commit
6d1af85e80
@ -84,6 +84,7 @@ func (p *httpPlugin) do(ctx context.Context, r *Request, res *Response) error {
|
|||||||
}
|
}
|
||||||
req = req.WithContext(ctx)
|
req = req.WithContext(ctx)
|
||||||
req.Header.Set("X-Frp-Reqid", GetReqidFromContext(ctx))
|
req.Header.Set("X-Frp-Reqid", GetReqidFromContext(ctx))
|
||||||
|
req.Header.Set("Content-Type", "application/json")
|
||||||
resp, err := p.client.Do(req)
|
resp, err := p.client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user