Encode uri to support utf8 chars by RobinQu · Pull Request #46 · nodejitsu/node-cloudfiles · GitHub
Skip to content

Encode uri to support utf8 chars#46

Open
RobinQu wants to merge 2 commits into
nodejitsu:masterfrom
RobinQu:master
Open

Encode uri to support utf8 chars#46
RobinQu wants to merge 2 commits into
nodejitsu:masterfrom
RobinQu:master

Conversation

@RobinQu

@RobinQu RobinQu commented Aug 29, 2012

Copy link
Copy Markdown

A filename, which is part of request URI in many APIs, is not necessary to be consisted of only English chars.

Considering support for such non-asci chars, we should encodeURI() before sending the request.

In fact, current implementation of storageUrl and cdnUrl really annoys me when uploading files with Chinese file names as the server responds no error but files are nowhere to be seen on the Cloudfile.

And the problem goes away with this fix.

@indexzero

Copy link
Copy Markdown
Member

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

Successfully merging this pull request may close these issues.

2 participants