Skip to content

Commit

Permalink
fix: Http读取响应的时候,如果系统编码不是UTF-8,而服务器响应是UTF-8,会乱码
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Sep 18, 2014
1 parent a19315c commit ce69741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/nutz/http/Response.java
Expand Up @@ -90,7 +90,7 @@ public InputStream getStream() {

public Reader getReader() {
String encoding = this.getEncodeType();
if (null == encoding || "UTF-8".equalsIgnoreCase(encoding))
if (null == encoding)
return getReader(Encoding.defaultEncoding());
else
return getReader(encoding);
Expand Down

0 comments on commit ce69741

Please sign in to comment.