Escape a colon in protocol names
This commit is contained in:
parent
d318f526a2
commit
ac968fbf7b
@ -34,6 +34,9 @@ final class JettyNpnSslSession implements SSLSession {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setApplicationProtocol(String applicationProtocol) {
|
void setApplicationProtocol(String applicationProtocol) {
|
||||||
|
if (applicationProtocol != null) {
|
||||||
|
applicationProtocol = applicationProtocol.replace(':', '_');
|
||||||
|
}
|
||||||
this.applicationProtocol = applicationProtocol;
|
this.applicationProtocol = applicationProtocol;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -808,7 +808,7 @@ public final class OpenSslEngine extends SSLEngine {
|
|||||||
if (applicationProtocol == null) {
|
if (applicationProtocol == null) {
|
||||||
applicationProtocol = fallbackApplicationProtocol;
|
applicationProtocol = fallbackApplicationProtocol;
|
||||||
}
|
}
|
||||||
this.applicationProtocol = applicationProtocol;
|
this.applicationProtocol = applicationProtocol.replace(':', '_');
|
||||||
return FINISHED;
|
return FINISHED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user