mirror of
https://github.com/bettercap/bettercap
synced 2025-07-07 05:22:04 -07:00
fix: no more explicit call to that ugly Updated method from proxy js plugins
This commit is contained in:
parent
3c2932514a
commit
adc2dde170
7 changed files with 26 additions and 16 deletions
|
@ -168,7 +168,8 @@ func (s *ProxyScript) OnRequest(req *http.Request) *JSResponse {
|
|||
return nil
|
||||
}
|
||||
|
||||
if jsres.wasUpdated == true {
|
||||
if jsres.WasModified() {
|
||||
jsres.UpdateHash()
|
||||
return jsres
|
||||
}
|
||||
}
|
||||
|
@ -193,7 +194,8 @@ func (s *ProxyScript) OnResponse(res *http.Response) *JSResponse {
|
|||
return nil
|
||||
}
|
||||
|
||||
if jsres.wasUpdated == true {
|
||||
if jsres.WasModified() {
|
||||
jsres.UpdateHash()
|
||||
return jsres
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue