MCPcopy Index your code
hub / github.com/SummerSec/SpringExploit / SetRequest

Function SetRequest

cmd/commons/utils/setrequest.go:9–19  ·  view source on GitHub ↗

SetRequest 设置请求头和请求boby

(req *req.Request, headers map[string]string, body string)

Source from the content-addressed store, hash-verified

7
8// SetRequest 设置请求头和请求boby
9func SetRequest(req *req.Request, headers map[string]string, body string) *req.Request {
10 //req.SetHeaders(headers)
11
12 req.Headers = make(http.Header)
13 for k, v := range headers {
14 req.Headers[k] = []string{v}
15 }
16 req.SetBody(body)
17 return req
18
19}

Callers 1

SendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected