use correct header

This commit is contained in:
Maren Süwer
2018-10-29 15:27:21 +01:00
parent 7a60e976a1
commit e67f68c364
2 changed files with 2 additions and 2 deletions

View File

@@ -111,7 +111,7 @@ export function getProgrammingLanguage(url: string) {
return apiClient
.head(url)
.then(response => {
return { language: response.headers.get("Language") };
return { language: response.headers.get("X-Programming-Language") };
})
.catch(err => {
return { error: err };