Bug 1210088 - Make sure the Switchboard config fetch acts like a true HTTP GET r=margaret a=lizzard
authorMark Finkle <mfinkle@mozilla.com>
Thu, 22 Oct 2015 01:06:15 -0400
changeset 296586 8f6012c322ad61dee1f73e87ac44916a6ccee31c
parent 296585 d05022112ecf3fa3035457520d8e62d132640137
child 296587 927509f2757caac0fd74abb007e7459eeeffcee9
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret, lizzard
bugs1210088
milestone43.0a2
Bug 1210088 - Make sure the Switchboard config fetch acts like a true HTTP GET r=margaret a=lizzard
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) {