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

[BUGFIX] Ensure full compatible for proxy setting to retrieve Translator #336

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

staempfli-webteam
Copy link

@staempfli-webteam staempfli-webteam commented Jun 10, 2024

With #331 the TYPO3 proxy setting has been validated
and set as DeepL Guzzle Client transport option to
have a proper configured proxy used.

The TYPO3 proxy setting however allows setting it as a
single string url or as array for different protocols,
which is not respected.

This change modifies the AbstractClient->getTranslator()
implementation to handle this double structure for named
option correctly now.

[1] https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/Configuration/Typo3ConfVars/HTTP.html#typo3ConfVars_http_proxy

Related: #331

@sbuerk sbuerk force-pushed the feature/proxy branch 2 times, most recently from 4d66b7d to 7f3b8e7 Compare June 10, 2024 10:01
With web-vision#331 the TYPO3 proxy setting has been validated
and set as `DeepL Guzzle Client` transport option to
have a proper configured proxy used.

The TYPO3 proxy setting however allows setting it as a
single string url or as array for different protocols,
which is not respected.

This change modifies the `AbstractClient->getTranslator()`
implementation to handle this double structure for named
option correctly now.

[1] https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/Configuration/Typo3ConfVars/HTTP.html#typo3ConfVars_http_proxy

Related: web-vision#331
@sbuerk sbuerk changed the title Feature/proxy [BUGFIX] Ensure full compatible for proxy setting to retrieve Translator Jun 10, 2024
@staempfli-webteam
Copy link
Author

THX @sbuerk

@NarkNiro NarkNiro merged commit dea7d0d into web-vision:main Jun 10, 2024
9 checks passed
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.

4 participants