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

Proxy support based on DW's main configuration #472

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

emmanuel-benoit
Copy link

Hello,
Here is a small patch that solves issue #245 by setting mPDF's curlProxy and curlProxyAuth configuration variables based on Dokuwiki's proxy configuration (if it is set).
Kind regards,
E.B.

@Klap-in
Copy link
Collaborator

Klap-in commented Feb 20, 2023

Thanks! Looks logic for me, @splitbrain could you have a look as well?

@splitbrain
Copy link
Owner

Well, in principle this makes sense.

However, preferably dw2pdf would use DokuWiki's own HTTP client instead of relying on curl. That should be possible by implementing our own \Mpdf\Http\ClientInterface

See https://mpdf.github.io/configuration/configuration-v7-x.html#http-client

@emmanuel-benoit
Copy link
Author

In this case, please feel free to reject this pull request as I don't have enough time to dig into this at the moment.

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.

3 participants