Skip to content

Commit 848aed7

Browse files
Preserve direct Accept parsing
1 parent 0f12567 commit 848aed7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/protocol/http/header/accept.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def quality_factor
7373
# @parameter value [String] a raw header value containing comma-separated media types.
7474
# @returns [Accept] a new instance containing the parsed media types.
7575
def self.parse(value)
76-
self.new << value
76+
self.new(value.scan(SEPARATOR).map(&:strip))
7777
end
7878

7979
# Adds one or more comma-separated values to the header.

0 commit comments

Comments
 (0)