Skip to content

Commit

Permalink
Merge pull request Rightpoint#9 from USANum1/request-byte-count
Browse files Browse the repository at this point in the history
Adding support for supplementary characters in RequestBuilder.setStringInput
  • Loading branch information
dylanrjames committed Jun 20, 2014
2 parents b4655c6 + 746bdce commit a8a43e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public RequestBuilder setFileInput(File file, ProgressListener progressListener)
* @return This {@link RequestBuilder} object to allow for chaining of calls.
*/
public RequestBuilder setStringInput(String string, ProgressListener progressListener) {
setInputStream(IOUtils.getInputStream(string), string.length(), progressListener);
setInputStream(IOUtils.getInputStream(string), string.getBytes().length, progressListener);

return this;
}
Expand Down

0 comments on commit a8a43e1

Please sign in to comment.