mirror of
https://github.com/bettercap/bettercap
synced 2025-07-08 05:51:37 -07:00
Update HTTP header regexp selector.
This commit is contained in:
parent
6bf46c7ff6
commit
dd08976e8b
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ type JSRequest struct {
|
||||||
bodyRead bool
|
bodyRead bool
|
||||||
}
|
}
|
||||||
|
|
||||||
var header_regexp = regexp.MustCompile(`(.*?): (.*)`)
|
var header_regexp = regexp.MustCompile(`^\s*(.*?)\s*:\s*(.*)\s*$`)
|
||||||
|
|
||||||
func NewJSRequest(req *http.Request) *JSRequest {
|
func NewJSRequest(req *http.Request) *JSRequest {
|
||||||
headers := ""
|
headers := ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue