From 769f2e33f64415f1a82dcc1c50e8fd53af3e7c64 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Thu, 7 Jun 2018 12:04:21 +0200 Subject: [PATCH] send Accept: application/json :bug: --- lib/request.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/request.js b/lib/request.js index 9620ccfa..5d75d97c 100644 --- a/lib/request.js +++ b/lib/request.js @@ -20,6 +20,7 @@ const request = (profile, data) => { headers: { 'Content-Type': 'application/json', 'Accept-Encoding': 'gzip, deflate', + 'Accept': 'application/json', 'user-agent': 'https://github.com/public-transport/hafas-client' }, query: {}