mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 10:39:53 +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:
parent
99e037bd1d
commit
8a93193a90
1 changed files with 1 additions and 1 deletions
|
@ -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}"
|
||||
|
||||
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}')
|
||||
cd ..
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue