aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net/http/header.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/http/header.rb')
-rw-r--r--lib/net/http/header.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http/header.rb b/lib/net/http/header.rb
index 96d898c89f..4fa6d8a772 100644
--- a/lib/net/http/header.rb
+++ b/lib/net/http/header.rb
@@ -20,7 +20,7 @@ module Net::HTTPHeader
else
value = value.strip # raise error for invalid byte sequences
if value.count("\r\n") > 0
- raise ArgumentError, 'header field value cannot include CR/LF'
+ raise ArgumentError, "header #{key} has field value #{value.inspect}, this cannot include CR/LF"
end
@header[key.downcase] = [value]
end