Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Encoding binary file download POST parameters #210

Merged
merged 1 commit into from
Sep 23, 2012

Conversation

alfetopito
Copy link
Contributor

When using casper.download() with unicode characters (é, á, ç, etc), sometimes it just garbled the response data and other times the request completely failed.
When replacing escape (https://github.com/n1k0/casperjs/blob/master/modules/clientutils.js#L317) by encodeURIComponent the issue is gone.

Not sure if it covers all the cases, but it works for me.

In any case, it could help someone else, so here it goes the pull request.

@travisbot
Copy link

This pull request passes (merged 24e0708 into 5ed461e).

n1k0 added a commit that referenced this pull request Sep 23, 2012
Encoding binary file download POST parameters
@n1k0 n1k0 merged commit 37d2747 into casperjs:master Sep 23, 2012
n1k0 added a commit that referenced this pull request Sep 23, 2012
@n1k0
Copy link
Member

n1k0 commented Sep 23, 2012

Thanks for contributing.

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

Successfully merging this pull request may close these issues.

3 participants