Clientlib: support operation without api key
This commit is contained in:
1 parent
4f58c64881
commit
469bf844ee
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