Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set multi-cookie problem! #89

Closed
duleigiser opened this issue Jul 4, 2017 · 2 comments
Closed

set multi-cookie problem! #89

duleigiser opened this issue Jul 4, 2017 · 2 comments

Comments

@duleigiser
Copy link

duleigiser commented Jul 4, 2017

when a cookies incloud one , it is ok!

 cookie = new tough.Cookie({
        key: "lult",
        value: resCookie.lult,
        path: resCookie.path,
        'Max-Age': resCookie['Max-Age']
    });
    config.set({ lult: cookie });
    cookieJar.setCookie(cookie, 'url');

but now I have multi-cookie

for(let i=0;i<resCookie.length;i++){
        for(let key in resCookie[i]){
            var  obj ={
                key:key,
                value: resCookie[i][key],
                domain:'172.168.100.110',
                path:"/",
            }
        }
        let cookie = new tough.Cookie(obj);
        console.log(cookie)
        cookieJar.setCookie(cookie,proxy)
    }
    

but it doesnt work !
help me! thanks ~

@inikulin
Copy link
Contributor

inikulin commented Jul 4, 2017

Can you provide expected and actual result and small reproduction code that I can run on my computer via node repro.js?

@duleigiser
Copy link
Author

I was wrong in other places. The code is correct! @inikulin

@duleigiser duleigiser changed the title set muit-cookie problem! set multi-cookie problem! Jul 6, 2017
wjhsf pushed a commit that referenced this issue Feb 8, 2024
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](mysticatea/eslint-utils@v1.3.1...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
wjhsf pushed a commit that referenced this issue Feb 8, 2024
* Winter '20 (API 47.0) prep

* 0.6.0

* use node LTS in CI

* Prerelease 0.6.1 (#98)

* 0.6.1-alpha1

* wip: synthetic shadow dep

* wip: add testEnvironment to preset

* update yargs for security alert (#90)

* update yargs for security alert

* fix test

* Bump eslint-utils from 1.3.1 to 1.4.2 (#89)

Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](mysticatea/eslint-utils@v1.3.1...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Update input stub to support "autocomplete" property (#92)

* Update to include date-style and time-style attributes (#94)

* 0.6.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants