Clientlib: support operation without api key

This commit is contained in:
Gina Häußge committed 2018-09-29 15:00:27 +02:00
1 parent 4f58c64881
commit 469bf844ee
1 file changed
+3 -1
+3 -1
View File
@@ -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;