Bug 1210088 - Make sure the Switchboard config fetch acts like a true HTTP GET r=margaret
authorMark Finkle <mfinkle@mozilla.com>
Thu, 22 Oct 2015 01:06:15 -0400
changeset 304163 956cb30601fc65d3892203aa54a6ebf8ca96b398
parent 304162 26eecf48383ce30007b4f1c1a155f761c7a90c02
child 304164 646c308ad3bc4ccfea01deaf32a6927cf82be3f7
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs1210088
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1210088 - Make sure the Switchboard config fetch acts like a true HTTP GET r=margaret
mobile/android/thirdparty/com/keepsafe/switchboard/SwitchBoard.java
--- a/mobile/android/thirdparty/com/keepsafe/switchboard/SwitchBoard.java
+++ b/mobile/android/thirdparty/com/keepsafe/switchboard/SwitchBoard.java
@@ -400,17 +400,16 @@ public class SwitchBoard {
 		String completeUrl = address + "?" + params;
 		if(DEBUG) Log.d(TAG, "readFromUrl(): " + completeUrl);
 		
 		try {
 			URL url = new URL(completeUrl);
 			HttpURLConnection connection = (HttpURLConnection) url.openConnection();
 			connection.setRequestMethod("GET");
 			connection.setUseCaches(false);
-			connection.setDoOutput(true);
 
 			// get response
 			InputStream is = connection.getInputStream();
 			InputStreamReader inputStreamReader = new InputStreamReader(is);
 			BufferedReader bufferReader = new BufferedReader(inputStreamReader, 8192);
 			String line = "";
 			StringBuffer resultContent = new StringBuffer();
 			while ((line = bufferReader.readLine()) != null) {