Fix unsetting http2_support

This commit is contained in:
Jamie Curnow committed 2018-11-13 20:51:55 +10:00
1 parent a457a40359
commit 411734f392
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -59,8 +59,8 @@ module.exports = Mn.View.extend({
data.ssl_forced = true;
}
if (typeof data.http2_support !== 'undefined' && data.http2_support === '1') {
data.http2_support = true;
if (typeof data.http2_support !== 'undefined') {
data.http2_support = !!data.http2_support;
}
if (typeof data.domain_names === 'string' && data.domain_names) {