acme.sh
acme.sh copied to clipboard
Fix missing HTTP_HEADER for _get with wget
Save http header to file for _get with wget.
Fixes: #4251
After this PR there is still one issue that I'm currently investigating.
This PR mostly fixes the issue. BUT for some reason the log level needs to be at least set to --debug 2 --force --notify-level 0
With --debug 1 --force --notify-level 0
it still fails.
with the lower log level somehow two spaces are written into the header file prefixing all lines. This breaks the grep filters "^HTTP" in the dns modules".
With higher debug level a debug flag is passed to wget, resulting in the headers being written twice into the file. Once the regular way prefixed with two spaces and once without.
this is why the regex ^HTTP
matches only with increased debug output.
The debug issue is now also solved.
Ready for review
don't wrorry about the failed tests for " invalid public key in CSR: public key is forbidden". It's because the letsecnrypt CA changed policy yesterday. I will fix the test code soon.
please rebase and run the tests again.
I rebased.
@Neilpang As a first time contributor someone else needs to approve running the tests again.
fix the ci errors
~I fixed the linting issue. But I think there was another one. Sadly GitHub doesn't show me the CI run anymore since I pushed the first fix to my branch. :/~ Nevermind, I found it. Even though the CI doesn't show up here. It shows up when I go over to my forked repository and it's currently running...
CI is fixed.
https://github.com/acmesh-official/acme.sh/blob/master/acme.sh#L461
And where's the -q
there???
I'm still unsure if omitting the -q
parameter may introduce unexpected behavior, but after testing it looks fine at least with normal expected input...
Do you have more information on how this part of the documentation of grep is meant to be understood and if it is relevant?
Exit immediately with zero status if any match is found, even if an error was detected