mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 04:52:10 -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
|
||||
}
|
||||
|
||||
var header_regexp = regexp.MustCompile(`(.*?): (.*)`)
|
||||
var header_regexp = regexp.MustCompile(`^\s*(.*?)\s*:\s*(.*)\s*$`)
|
||||
|
||||
func NewJSRequest(req *http.Request) *JSRequest {
|
||||
headers := ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue