Skip to content

Commit

Permalink
fix: Add user-agent to the list of single value headers
Browse files Browse the repository at this point in the history
(cherry picked from commit 85b042c)
  • Loading branch information
rholshausen committed Jun 20, 2024
1 parent 954a332 commit 5d547c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class HeaderWithParameters(

object HeaderParser {
private val SINGLE_VALUE_HEADERS = setOf("date", "accept-datetime", "if-modified-since", "if-unmodified-since",
"expires", "retry-after", "last-modified", "set-cookie")
"expires", "retry-after", "last-modified", "set-cookie", "user-agent")

fun fromJson(key: String, value: JsonValue): List<String> {
return when {
Expand Down

0 comments on commit 5d547c1

Please sign in to comment.