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

SuperTest encode # character #339

Closed
roccomuso opened this issue May 25, 2016 · 1 comment
Closed

SuperTest encode # character #339

roccomuso opened this issue May 25, 2016 · 1 comment
Labels

Comments

@roccomuso
Copy link

Supertest (through SuperAgent) runs encodeURIComponent on all query keys. But what if I'd like to call something like this:

       request(url)
         .get('/data/#')
         .set('X-www-app', 'hello')
         .query({limit: 2})
         .expect('Content-Type', /json/)
         .expect(200)
         .end(function(err,res) {
           if (err) {
             debug(res.body);
             throw err;
           }

         });

Do I need to manually encode the # character in the get method?

@aimer1124
Copy link

I use this to encode(base64) my password

new Buffer(password").toString("base64")

@rimiti rimiti added the too-old Item to old label Mar 9, 2019
@rimiti rimiti closed this as completed Mar 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants