Merge pull request #918 from RBGKew/reconciliation-http-encoding

Add charset=UTF-8 to HTTP Content-Type for reconciliation queries.
This commit is contained in:
Tom Morris 2014-12-21 11:08:18 -05:00
commit fddaae291b
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ public class GuessTypesOfColumnCommand extends Command {
URL url = new URL(serviceUrl); URL url = new URL(serviceUrl);
HttpURLConnection connection = (HttpURLConnection) url.openConnection(); HttpURLConnection connection = (HttpURLConnection) url.openConnection();
{ {
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
connection.setConnectTimeout(30000); connection.setConnectTimeout(30000);
connection.setDoOutput(true); connection.setDoOutput(true);

View File

@ -335,7 +335,7 @@ public class StandardReconConfig extends ReconConfig {
URL url = new URL(service); URL url = new URL(service);
HttpURLConnection connection = (HttpURLConnection) url.openConnection(); HttpURLConnection connection = (HttpURLConnection) url.openConnection();
{ {
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
connection.setConnectTimeout(30000); connection.setConnectTimeout(30000);
connection.setDoOutput(true); connection.setDoOutput(true);