Skip to content

Commit

Permalink
version 1.0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
piliugin-anton committed Jun 15, 2022
1 parent 45e279e commit c5f316f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers/Negotiator.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Negotiator {
}

charsets (provided) {
return this.preferred(this.headers['accept-charset'], provided, 'charset')
return this.preferred(this.headers.get('accept-charset'), provided, 'charset')
}

encoding (available) {
Expand All @@ -30,7 +30,7 @@ class Negotiator {
}

encodings (provided) {
return this.preferred(this.headers['accept-encoding'], provided, 'encoding')
return this.preferred(this.headers.get('accept-encoding'), provided, 'encoding')
}

language (available) {
Expand All @@ -39,7 +39,7 @@ class Negotiator {
}

languages (provided) {
return this.preferred(this.headers['accept-language'], provided, 'language')
return this.preferred(this.headers.get('accept-language'), provided, 'language')
}

mediaType (available) {
Expand Down

0 comments on commit c5f316f

Please sign in to comment.