Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CCAT_CORE_USE_SECURE_PROTOCOLS #874

Merged

Conversation

kodaline
Copy link
Contributor

Description

  • In compose/env file, set CCAT_CORE_USE_SECURE_PROTOCOLS=0
  • issue: get_base_url() will return http0://...

This commit rewrites the condition in order to get the expected behavior:

  • CCAT_CORE_USE_SECURE_PROTOCOLS=1 | true will give https://...
  • everything else will give http://...

Added more tests for get_base_url() when CCAT_CORE_USE_SECURE_PROTOCOLS is set to a value

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

- In compose/env file, set `CCAT_CORE_USE_SECURE_PROTOCOLS=0`
issue: `get_base_url()` will return `http0://...`

This commit rewrites the condition in order to get the expected
behavior:
- `CCAT_CORE_USE_SECURE_PROTOCOLS=1 | true` will give `https://...`
- everything else will give `http://...`
@kodaline kodaline force-pushed the fix/env_variable_secure_protocol branch from 4e61b80 to cc732db Compare July 24, 2024 09:14
@pieroit pieroit merged commit dbfe897 into cheshire-cat-ai:develop Jul 24, 2024
2 checks passed
@pieroit
Copy link
Member

pieroit commented Jul 24, 2024

Thanks for adding also the tests :')

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.

2 participants