1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-12-22 08:48:54 +00:00

HTTP redirect after POST

This commit is contained in:
Arnaud Roques 2016-05-18 22:57:56 +02:00
parent 8737cea8e6
commit 8be5f6284e

View File

@ -27,7 +27,6 @@ import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.StringTokenizer;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@ -157,7 +156,7 @@ public class PlantUmlServlet extends HttpServlet {
private Transcoder getTranscoder() {
return TranscoderUtil.getDefaultTranscoder();
}
static private HttpURLConnection getConnection(URL url) throws IOException {
if (url.getProtocol().startsWith("https")) {
HttpsURLConnection con = (HttpsURLConnection) url.openConnection();