fix: no more explicit call to that ugly Updated method from proxy js plugins

This commit is contained in:
evilsocket 2018-02-08 12:32:22 +01:00
parent 3c2932514a
commit adc2dde170
7 changed files with 26 additions and 16 deletions

View file

@ -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
}
}