1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

add the Accept-Encoding header to the wget call

This is necessary to have results comparable to a users browser.
This commit is contained in:
Christian Loos 2014-04-07 08:32:41 +02:00
parent 99e037bd1d
commit 8a93193a90

View file

@ -109,7 +109,7 @@ url_webui="${web_url}Ticket/Display.html?id=${ticket_id}&user=${username}&pass=$
url_rest="${web_url}REST/1.0/ticket/${ticket_id}/history?format=l&user=${username}&pass=${password}" url_rest="${web_url}REST/1.0/ticket/${ticket_id}/history?format=l&user=${username}&pass=${password}"
cd $tmpdir || exit1 cd $tmpdir || exit1
loadtime_webui=$($time --portability $wget $wget_opts $url_webui 2>&1 | awk '/^real / {print $2}') loadtime_webui=$($time --portability $wget $wget_opts --header='Accept-Encoding: gzip,deflate' $url_webui 2>&1 | awk '/^real / {print $2}')
loadtime_rest=$($time --portability $wget $wget_opts $url_rest 2>&1 | awk '/^real / {print $2}') loadtime_rest=$($time --portability $wget $wget_opts $url_rest 2>&1 | awk '/^real / {print $2}')
cd .. cd ..