From 6d1af85e800f8a62288590089fcaa23035bdb417 Mon Sep 17 00:00:00 2001 From: Guy Lewin Date: Tue, 10 Mar 2020 03:23:37 -0400 Subject: [PATCH] fix: send server plugin request as json (#1690) --- models/plugin/server/http.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/plugin/server/http.go b/models/plugin/server/http.go index 155c470a..a3c243a0 100644 --- a/models/plugin/server/http.go +++ b/models/plugin/server/http.go @@ -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