diff options
| author | Ray Cheung <github@pragmatic.hk> | 2021-05-29 11:42:44 +0800 |
|---|---|---|
| committer | Ray Cheung <github@pragmatic.hk> | 2021-05-29 11:43:39 +0800 |
| commit | ca5d5668d9687ea57d880bcda259a156443c5180 (patch) | |
| tree | d17039fce43e7245f883f1446892a4e320cfe9e2 /src | |
| parent | 4a45d10a8b080209fc9dcefbc84a470694bdb33f (diff) | |
| download | invidious-ca5d5668d9687ea57d880bcda259a156443c5180.tar.gz invidious-ca5d5668d9687ea57d880bcda259a156443c5180.tar.bz2 invidious-ca5d5668d9687ea57d880bcda259a156443c5180.zip | |
Fix storyboard when proxied with an external port
Say if it's `http://host:port` internally and proxied to
`https://domain:external_port`, the storyboard URL was rendered as
`https://domain:port`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/helpers/utils.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/helpers/utils.cr b/src/invidious/helpers/utils.cr index 10d4e6b6..6ce457b9 100644 --- a/src/invidious/helpers/utils.cr +++ b/src/invidious/helpers/utils.cr @@ -298,7 +298,7 @@ def make_host_url(kemal_config) # Add if non-standard port if port != 80 && port != 443 - port = ":#{kemal_config.port}" + port = ":#{port}" else port = "" end |
