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
  • Loading branch information
rholshausen committed Apr 22, 2024
1 parent dd23af1 commit 85b042c
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 85b042c

Please sign in to comment.