mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
support value with "=" in httpCookie()
This commit is contained in:
committed by
Leonid Bugaev
parent
a5a3012347
commit
633cfd5fb4
@@ -385,7 +385,7 @@ function httpCookie(payload, name) {
|
||||
let value;
|
||||
let cookies = cookie.split("; ").forEach(function(v){
|
||||
if (v.indexOf(name + "=") == 0) {
|
||||
value = v.split("=")[1];
|
||||
value = v.substr(name.length + 1);
|
||||
}
|
||||
})
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user