You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by mi...@apache.org on 2019/12/25 16:50:22 UTC
[httpcomponents-core] 03/07: Fix awkward exception message
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch consistency-fixes
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
commit b8615d08bff81d5e4a2f20e4b376f20013da837f
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Wed Dec 25 16:39:01 2019 +0100
Fix awkward exception message
---
.../src/main/java/org/apache/hc/core5/http/message/HeaderGroup.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/message/HeaderGroup.java b/httpcore5/src/main/java/org/apache/hc/core5/http/message/HeaderGroup.java
index e94eeee..fe44776 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/message/HeaderGroup.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/message/HeaderGroup.java
@@ -263,7 +263,7 @@ public class HeaderGroup implements MessageHeaders, Serializable {
}
}
if (count > 1) {
- throw new ProtocolException("Multiple headers '%s'' found", name);
+ throw new ProtocolException("multiple '%s' headers found", name);
}
return singleHeader;
}