adaltas / node-hbase

Asynchronous HBase client for NodeJs using REST

Home Page:https://hbase.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

encode RFC3986

fly96-ocean opened this issue · comments

commented

Hi,

I found our URI contains special character: !'()*.
So could you please add encodeURIComponentRFC3986 function and then replace original encodeURIComponent in utils.coffee?

encodeURIComponentRFC3986: (str) ->
return encodeURIComponent(str).replace(/[!'()*]/g, (c) ->
return '%' + c.charCodeAt(0).toString(16);
);

I have some time to fix this one but it would be very nice to get a sample reproducing the problem to make sure I hit the right issue while writing a test case