Clientlib: support operation without api key
This commit is contained in:
1 parent
2a79d9183a
commit
61d037f188
1 file changed
+3
-1
@@ -111,7 +111,9 @@
|
||||
additional = additional || {};
|
||||
|
||||
var headers = $.extend({}, additional);
|
||||
headers["X-Api-Key"] = this.options.apikey;
|
||||
if (this.options.apikey) {
|
||||
headers["X-Api-Key"] = this.options.apikey;
|
||||
}
|
||||
|
||||
if (this.options.locale !== undefined) {
|
||||
headers["X-Locale"] = this.options.locale;
|
||||
|
||||
Reference in new issue
Block a user