Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Grunberg2015-06-02 12:52:11 -0400
committerRoland Grunberg2015-06-02 15:20:29 -0400
commit952e1ad5814c18c09c094f4769ff0d8c4a13ad1d (patch)
tree7090f425c9071873cacd5b9762b5dfcd6414c6dd
parenteb5a7e12754184f8b4f6330c162e04b3c6aeecbb (diff)
downloadorg.eclipse.linuxtools-952e1ad5814c18c09c094f4769ff0d8c4a13ad1d.tar.gz
org.eclipse.linuxtools-952e1ad5814c18c09c094f4769ff0d8c4a13ad1d.tar.xz
org.eclipse.linuxtools-952e1ad5814c18c09c094f4769ff0d8c4a13ad1d.zip
Bug 469181: Add HTTPS support for TTY mode.
In addition to being able to retrieve a stream from a response object when using unix/http protocols, we should also support https. Change-Id: I1d78ce88b9ad9d305c58f65763e0d34aefca447e Reviewed-on: https://git.eclipse.org/r/49231 Tested-by: Hudson CI Reviewed-by: Roland Grunberg <rgrunber@redhat.com> Reviewed-on: https://git.eclipse.org/r/49241
-rw-r--r--containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/internal/docker/core/HttpHijackWorkaround.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/internal/docker/core/HttpHijackWorkaround.java b/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/internal/docker/core/HttpHijackWorkaround.java
index c818c7bcee..746cb925c3 100644
--- a/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/internal/docker/core/HttpHijackWorkaround.java
+++ b/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/internal/docker/core/HttpHijackWorkaround.java
@@ -64,6 +64,8 @@ public class HttpHijackWorkaround {
if (uri.startsWith("unix:")) {
list.add(new String[] { "sun.nio.ch.ChannelInputStream", "ch" });
+ } else if (uri.startsWith("https:")) {
+ list.add(new String[] { "sun.security.ssl.AppInputStream", "c" });
} else {
list.add(new String[] { "java.net.SocketInputStream", "socket" });
}

Back to the top