ovh / node-ovh

Node.js wrapper for the OVH APIs
http://ovh.github.io/node-ovh
Other
133 stars 27 forks source link

X-Ovh-Signature only sent to /auth #16

Open Haakjvork opened 8 years ago

Haakjvork commented 8 years ago

Requests are not signed because of Line 366 in ovh.es5.js : if (path.indexOf('/auth') < 0) {

That 'if' shouldn't exist at all, right?

tuarrep commented 8 years ago

@Haakjvork Nope it's the contrary If /auth isn't in path path.indexOf('/auth') should return -1 so the condition is valid. Thus all requests are signed except ones corresponding to /auth