Skip to content

Commit

Permalink
fix #2891 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
buixor committed Mar 27, 2024
1 parent 28180b2 commit 961a517
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/appsec/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type ParsedRequest struct {
Host string `json:"host,omitempty"`
ClientIP string `json:"client_ip,omitempty"`
URI string `json:"uri,omitempty"`
Path string `json:"path,omitempty"`
Args url.Values `json:"args,omitempty"`
ClientHost string `json:"client_host,omitempty"`
Headers http.Header `json:"headers,omitempty"`
Expand Down Expand Up @@ -365,11 +366,12 @@ func NewParsedRequestFromRequest(r *http.Request, logger *logrus.Entry) (ParsedR
UUID: uuid.New().String(),
ClientHost: clientHost,
ClientIP: clientIP,
URI: parsedURL.Path,
URI: clientURI,
Path: parsedURL.Path,
Method: clientMethod,
Host: r.Host,
Host: clientHost,
Headers: r.Header,
URL: r.URL,
URL: parsedURL,
Proto: r.Proto,
Body: body,
Args: ParseQuery(parsedURL.RawQuery),
Expand Down

0 comments on commit 961a517

Please sign in to comment.