mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
move ParseQuery to expr helpers, add ExtractQueryParam (#3491)
* move ParseQuery to expr helpers, add ExtractQueryParam
This commit is contained in:
parent
61c7de1331
commit
f49e1e28d2
7 changed files with 455 additions and 286 deletions
|
@ -11,6 +11,7 @@ import (
|
|||
"os"
|
||||
"regexp"
|
||||
|
||||
"github.com/crowdsecurity/crowdsec/pkg/exprhelpers"
|
||||
"github.com/google/uuid"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
@ -396,7 +397,7 @@ func NewParsedRequestFromRequest(r *http.Request, logger *log.Entry) (ParsedRequ
|
|||
URL: parsedURL,
|
||||
Proto: r.Proto,
|
||||
Body: body,
|
||||
Args: ParseQuery(parsedURL.RawQuery),
|
||||
Args: exprhelpers.ParseQuery(parsedURL.RawQuery),
|
||||
TransferEncoding: r.TransferEncoding,
|
||||
ResponseChannel: make(chan AppsecTempResponse),
|
||||
RemoteAddrNormalized: remoteAddrNormalized,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue