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/26 19:41:45 UTC
[httpcomponents-core] branch xml-utf8 updated (5bc5f42 -> ce6c6da)
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a change to branch xml-utf8
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git.
discard 5bc5f42 Use UTF-8 encoding for XML-based content types
omit c4346a7 Replace LangUtils with Objects
new ce6c6da Use UTF-8 encoding for XML-based content types
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (5bc5f42)
\
N -- N -- N refs/heads/xml-utf8 (ce6c6da)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../apache/hc/core5/http2/hpack/HPackEncoder.java | 4 +-
.../java/org/apache/hc/core5/http/HttpHost.java | 11 ++-
.../hc/core5/http/message/BasicNameValuePair.java | 9 +-
.../apache/hc/core5/http/message/HeaderGroup.java | 4 +-
.../main/java/org/apache/hc/core5/net/Host.java | 7 +-
.../java/org/apache/hc/core5/net/URIAuthority.java | 12 ++-
.../java/org/apache/hc/core5/pool/LaxConnPool.java | 4 +-
.../org/apache/hc/core5/pool/StrictConnPool.java | 4 +-
.../java/org/apache/hc/core5/util/LangUtils.java | 98 ++++++++++++++++++++++
.../java/org/apache/hc/core5/util/TimeValue.java | 8 +-
.../org/apache/hc/core5/util/TestLangUtils.java | 88 +++++++++++++++++++
11 files changed, 226 insertions(+), 23 deletions(-)
create mode 100644 httpcore5/src/main/java/org/apache/hc/core5/util/LangUtils.java
create mode 100644 httpcore5/src/test/java/org/apache/hc/core5/util/TestLangUtils.java
[httpcomponents-core] 01/01: Use UTF-8 encoding for XML-based
content types
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch xml-utf8
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
commit ce6c6dacd3272bfe8bfde22b2d55ac00deabe510
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Thu Dec 26 20:40:33 2019 +0100
Use UTF-8 encoding for XML-based content types
---
.../main/java/org/apache/hc/core5/http/ContentType.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java b/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java
index bd3bcc3..37d4030 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java
@@ -65,7 +65,7 @@ public final class ContentType implements Serializable {
// constants
public static final ContentType APPLICATION_ATOM_XML = create(
- "application/atom+xml", StandardCharsets.ISO_8859_1);
+ "application/atom+xml", StandardCharsets.UTF_8);
public static final ContentType APPLICATION_FORM_URLENCODED = create(
"application/x-www-form-urlencoded", StandardCharsets.ISO_8859_1);
public static final ContentType APPLICATION_JSON = create(
@@ -75,20 +75,20 @@ public final class ContentType implements Serializable {
public static final ContentType APPLICATION_SOAP_XML = create(
"application/soap+xml", StandardCharsets.UTF_8);
public static final ContentType APPLICATION_SVG_XML = create(
- "application/svg+xml", StandardCharsets.ISO_8859_1);
+ "application/svg+xml", StandardCharsets.UTF_8);
public static final ContentType APPLICATION_XHTML_XML = create(
- "application/xhtml+xml", StandardCharsets.ISO_8859_1);
+ "application/xhtml+xml", StandardCharsets.UTF_8);
public static final ContentType APPLICATION_XML = create(
- "application/xml", StandardCharsets.ISO_8859_1);
+ "application/xml", StandardCharsets.UTF_8);
public static final ContentType IMAGE_BMP = create(
"image/bmp");
- public static final ContentType IMAGE_GIF= create(
+ public static final ContentType IMAGE_GIF = create(
"image/gif");
public static final ContentType IMAGE_JPEG = create(
"image/jpeg");
public static final ContentType IMAGE_PNG = create(
"image/png");
- public static final ContentType IMAGE_SVG= create(
+ public static final ContentType IMAGE_SVG = create(
"image/svg+xml");
public static final ContentType IMAGE_TIFF = create(
"image/tiff");
@@ -101,7 +101,7 @@ public final class ContentType implements Serializable {
public static final ContentType TEXT_PLAIN = create(
"text/plain", StandardCharsets.ISO_8859_1);
public static final ContentType TEXT_XML = create(
- "text/xml", StandardCharsets.ISO_8859_1);
+ "text/xml", StandardCharsets.UTF_8);
public static final ContentType WILDCARD = create(
"*/*", (Charset) null);