diff --git a/gbfs-validator/__test__/__snapshots__/gbfs.test.js.snap b/gbfs-validator/__test__/__snapshots__/gbfs.test.js.snap
index 0d6a007..12dd63d 100644
--- a/gbfs-validator/__test__/__snapshots__/gbfs.test.js.snap
+++ b/gbfs-validator/__test__/__snapshots__/gbfs.test.js.snap
@@ -78,12 +78,13 @@ GBFS {
"auth": Object {
"apiKey": Object {
"key": "mykey",
+ "value": "myvalue",
},
"type": "api_key",
},
"gotOptions": Object {
"headers": Object {
- "X-API-KEY": "mykey",
+ "mykey": "myvalue",
},
},
"options": Object {
diff --git a/gbfs-validator/__test__/gbfs.test.js b/gbfs-validator/__test__/gbfs.test.js
index 5685477..c532d5f 100644
--- a/gbfs-validator/__test__/gbfs.test.js
+++ b/gbfs-validator/__test__/gbfs.test.js
@@ -57,7 +57,10 @@ describe('initialization', () => {
new GBFS('http://localhost:8888/gbfs.json', {
auth: {
type: 'api_key',
- apiKey: { key: 'mykey' }
+ apiKey: {
+ key: 'mykey',
+ value: 'myvalue'
+ }
}
})
).toMatchSnapshot()
diff --git a/gbfs-validator/gbfs.js b/gbfs-validator/gbfs.js
index e81199b..fe136f9 100644
--- a/gbfs-validator/gbfs.js
+++ b/gbfs-validator/gbfs.js
@@ -189,7 +189,7 @@ class GBFS {
if (this.auth.type === 'api_key' && this.auth.apiKey) {
this.gotOptions.headers = {
- 'X-API-KEY': `${this.auth.apiKey.key}`
+ [this.auth.apiKey.key]: `${this.auth.apiKey.value}`
}
}
}
diff --git a/website/src/pages/Validator.vue b/website/src/pages/Validator.vue
index efc5bce..a6100ef 100644
--- a/website/src/pages/Validator.vue
+++ b/website/src/pages/Validator.vue
@@ -201,17 +201,28 @@ function updateURL() {
>
-
-
+
+
+
+
+
+
+
+