mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix http2 with curl (#547)
This commit is contained in:
parent
cedaaa9087
commit
428a29936f
1 changed files with 3 additions and 0 deletions
|
@ -253,6 +253,9 @@ ynh_local_curl () {
|
|||
# Add --data arg and remove the last character, which is an unecessary '&'
|
||||
POST_data="--data ${POST_data::-1}"
|
||||
fi
|
||||
|
||||
# Wait untils nginx has fully reloaded (avoid curl fail with http2)
|
||||
sleep 2
|
||||
|
||||
# Curl the URL
|
||||
curl --silent --show-error -kL -H "Host: $domain" --resolve $domain:443:127.0.0.1 $POST_data "$full_page_url"
|
||||
|
|
Loading…
Add table
Reference in a new issue