fix: send server plugin request as json (#1690)

pull/1668/head
Guy Lewin 5 years ago committed by GitHub
parent 1db091b381
commit 6d1af85e80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -84,6 +84,7 @@ func (p *httpPlugin) do(ctx context.Context, r *Request, res *Response) error {
}
req = req.WithContext(ctx)
req.Header.Set("X-Frp-Reqid", GetReqidFromContext(ctx))
req.Header.Set("Content-Type", "application/json")
resp, err := p.client.Do(req)
if err != nil {
return err

Loading…
Cancel
Save