lib/accept_headers/encoding/negotiator.rb in accept_headers-0.0.2 vs lib/accept_headers/encoding/negotiator.rb in accept_headers-0.0.3

- old
+ new

@@ -9,10 +9,10 @@ private def parse(original_header) header = original_header.dup header.sub!(/\AAccept-Encoding:\s*/, '') header.strip! - return [Charset.new] if header.empty? + return [Encoding.new] if header.empty? encodings = [] header.split(',').each do |entry| encoding_arr = entry.split(';', 2) next if encoding_arr[0].nil? encoding = TOKEN_PATTERN.match(encoding_arr[0])