Skip to content

Commit 52a57a2

Browse files
committed
Respect PUBLIC_DOMAIN_USES_HTTPS on RTD_EXTERNAL_VERSION_DOMAIN
1 parent f3b142e commit 52a57a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

readthedocs/core/resolver.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ def resolve(
192192
# or fallback to settings
193193
settings.PUBLIC_DOMAIN_USES_HTTPS and
194194
settings.PUBLIC_DOMAIN and
195-
settings.PUBLIC_DOMAIN in domain,
195+
any([
196+
settings.PUBLIC_DOMAIN in domain,
197+
settings.RTD_EXTERNAL_VERSION_DOMAIN in domain,
198+
]),
196199
])
197200
protocol = 'https' if use_https_protocol else 'http'
198201

0 commit comments

Comments
 (0)