Skip to content

Commit

Permalink
Update EncoderDecoder.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
Saturn225 authored Jan 23, 2025
1 parent 37a2a8e commit 3f64256
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,7 @@ private[codec] object EncoderDecoder {
.getOrElse(throw HttpCodecError.MalformedHeader(codec.name, codec.textCodec))

case None =>
if (codec.name.equalsIgnoreCase("Authorization")) {
throw HttpCodecError.MissingHeader("Authorization")
} else {
throw HttpCodecError.MissingHeader(codec.name)
}
throw HttpCodecError.MissingHeader(codec.name)
},
)

Expand Down

0 comments on commit 3f64256

Please sign in to comment.