MCPcopy Index your code
hub / github.com/bettercap/bettercap / WasModified

Method WasModified

modules/http_proxy/http_proxy_js_request.go:97–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95}
96
97func (j *JSRequest) WasModified() bool {
98 // body was read
99 if j.bodyRead {
100 return true
101 }
102 // check if any of the fields has been changed
103 return j.NewHash() != j.refHash
104}
105
106func (j *JSRequest) CheckIfModifiedAndUpdateHash() bool {
107 newHash := j.NewHash()

Callers

nothing calls this directly

Calls 1

NewHashMethod · 0.95

Tested by

no test coverage detected