package eu.siacs.conversations.http; import java.io.IOException; import java.net.URL; import java.net.URLConnection; import java.net.URLStreamHandler; public class OmemoURLStreamHandler extends URLStreamHandler { @Override protected URLConnection openConnection(URL url) throws IOException { return new URL("https"+url.toString().substring(5)).openConnection(); } }