1 2package org.ksoap2.transport; 3 4import java.io.IOException; 5 6class HttpsServiceConnectionSEIgnoringConnectionClose extends HttpsServiceConnectionSE { 7 8 public HttpsServiceConnectionSEIgnoringConnectionClose(String host, int port, String file, 9 int timeout) 10 throws IOException { 11 super(host, port, file, timeout); 12 } 13 14 //@Override 15 public void setRequestProperty(String key, String value) { 16 // We want to ignore any setting of "Connection: close" because 17 // it is buggy with Android SSL. 18 if ("Connection".equalsIgnoreCase(key) && "close".equalsIgnoreCase(value)) { 19 return; 20 } else { 21 super.setRequestProperty(key, value); 22 } 23 } 24} 25