mirror of
https://github.com/bettercap/bettercap
synced 2025-07-07 21:42:06 -07:00
fix: fixed bug which caused http.proxy not to parse response changes correctly.
This commit is contained in:
parent
8d6402323f
commit
8a0b29cd30
2 changed files with 11 additions and 7 deletions
|
@ -126,7 +126,7 @@ func (s *ProxyScript) doRequestDefines(req *http.Request) (err error, jsres *JSR
|
|||
return
|
||||
}
|
||||
|
||||
jsres = &JSResponse{}
|
||||
jsres = NewJSResponse(nil)
|
||||
if err = s.VM.Set("res", jsres); err != nil {
|
||||
log.Error("Error while defining response: %s", err)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue