silexlabs / unifile

Unified access to cloud storage services through a simple web API.
https://silexlabs.github.io/unifile/
MIT License
144 stars 32 forks source link

Encode non-ASCII chars in Dropbox headers #137

Closed JbIPS closed 6 years ago

JbIPS commented 6 years ago

Path with non-ASCII char are passed in header, creating an error. Now we replace all special char with the \uXXXX encoding when stringifying the headers.

Closes #134

JbIPS commented 6 years ago

I added some documentation and a link for the method. IMO, the regexp is good since it filter out all non-ASCII char, whatever they are.

Feel free to squash and merge if this satisfy you.

lexoyo commented 6 years ago

works great locally, let's merge and deploy