Skip to content

views.py: Fix port in URL for setup / downloads-zip#239

Open
Eckert-IT wants to merge 1 commit intobryangerlach:masterfrom
Eckert-IT:fix-setup-download-zip
Open

views.py: Fix port in URL for setup / downloads-zip#239
Eckert-IT wants to merge 1 commit intobryangerlach:masterfrom
Eckert-IT:fix-setup-download-zip

Conversation

@Eckert-IT
Copy link
Copy Markdown

If your are on the self hosted version and <our URL contains an specific port, you get an issue qithin the workflow and [setup / download-zip].
E.g. URL: https://www.my-domain.com:4433 --> [setup / download-zip] won't work, because
input_data = json.loads('{"url": "https://www.my-domain.com/" ...

This is issued by line 103 in rdgen / rdgenerator / views.py using
full_url = f"{protocol}://{host}"

I changed ist to
full_url = f"{protocol}://{host}" if _settings.GENURL else f"{_settings.PROTOCOL}://{request.get_host()}"
and now it works (2 time test run).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant