Skip to content

Commit

Permalink
Merge pull request koush#248 from IkhlasStudio/fix-charset
Browse files Browse the repository at this point in the history
fix charset from utf8 to utf-8
  • Loading branch information
koush committed Sep 28, 2014
2 parents 523c674 + c265454 commit 5530bb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void write(AsyncHttpRequest request, final DataSink response, final Compl
public static final String CONTENT_TYPE = "application/x-www-form-urlencoded";
@Override
public String getContentType() {
return CONTENT_TYPE + "; charset=utf8";
return CONTENT_TYPE + "; charset=utf-8";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@ public void send(String string) {
responseCode(200);
String contentType = mRawHeaders.get("Content-Type");
if (contentType == null)
contentType = "text/html; charset=utf8";
contentType = "text/html; charset=utf-8";
send(contentType, string);
}

@Override
public void send(JSONObject json) {
send("application/json; charset=utf8", json.toString());
send("application/json; charset=utf-8", json.toString());
}

@Override
Expand Down

0 comments on commit 5530bb8

Please sign in to comment.