Clientlib: support operation without api key

This commit is contained in:
Gina Häußge committed 2018-08-28 22:02:40 +02:00
1 parent 2a79d9183a
commit 61d037f188
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;