mirror of
https://gitea.invidious.io/iv-org/shard-athena-negotiation.git
synced 2024-08-15 00:53:23 +00:00
Bump typos version in CI & address errors (athena-framework/athena#430)
This commit is contained in:
parent
d821e33839
commit
94cf8e33d9
1 changed files with 3 additions and 3 deletions
|
@ -26,9 +26,9 @@ abstract class Athena::Negotiation::AbstractNegotiator(HeaderType)
|
||||||
raise ex if strict
|
raise ex if strict
|
||||||
end
|
end
|
||||||
|
|
||||||
accepted_priorties = priorities.map { |p| HeaderType.new p }
|
accepted_priorities = priorities.map { |p| HeaderType.new p }
|
||||||
|
|
||||||
matches = self.find_matches accepted_headers, accepted_priorties
|
matches = self.find_matches accepted_headers, accepted_priorities
|
||||||
|
|
||||||
specific_matches = matches.reduce({} of Int32 => ANG::AcceptMatch) do |acc, match|
|
specific_matches = matches.reduce({} of Int32 => ANG::AcceptMatch) do |acc, match|
|
||||||
ANG::AcceptMatch.reduce acc, match
|
ANG::AcceptMatch.reduce acc, match
|
||||||
|
@ -38,7 +38,7 @@ abstract class Athena::Negotiation::AbstractNegotiator(HeaderType)
|
||||||
|
|
||||||
match = specific_matches.shift?
|
match = specific_matches.shift?
|
||||||
|
|
||||||
match.nil? ? nil : accepted_priorties[match.index]
|
match.nil? ? nil : accepted_priorities[match.index]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns an array of `HeaderType` that the provided *header* allows, ordered so that the `#best` match is first.
|
# Returns an array of `HeaderType` that the provided *header* allows, ordered so that the `#best` match is first.
|
||||||
|
|
Loading…
Reference in a new issue