anotherim/src/main/java/eu/siacs/conversations/http/OmemoURLStreamHandler.java

15 lines
389 B
Java
Raw Normal View History

2017-02-07 18:31:54 +00:00
package eu.siacs.conversations.http;
2017-02-07 18:32:12 +00:00
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();
}
2017-02-07 18:31:54 +00:00
}