mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 13:02:12 -07:00
Update http_proxy_js_request.go
This commit is contained in:
parent
e17a848f8a
commit
57c1aa5a5e
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ func (j *JSRequest) GetHeader(name, deflt string) string {
|
|||
func (j *JSRequest) SetHeader(name, value string) {
|
||||
name = strings.ToLower(name)
|
||||
for i, h := range j.Headers {
|
||||
if name == strings.ToLower(h.Name) {
|
||||
if name == strings.ToLower(h.Name) {
|
||||
j.Headers[i].Value = value
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue