From f1a2a918c8fd8b2a95177bb16fdc81872608e82c Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sun, 2 Oct 2022 21:40:15 -0700 Subject: [PATCH] Change host in fixture script --- test/populateContent.sh | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/test/populateContent.sh b/test/populateContent.sh index 5e2c0bc7a..9eb48c552 100644 --- a/test/populateContent.sh +++ b/test/populateContent.sh @@ -148,34 +148,19 @@ curl 'http://localhost:8080/api/admin/config/offlinemessage' \ # Chat welcome message -curl 'https://webv2.owncast.tv/api/admin/config/welcomemessage' \ - -H 'authority: webv2.owncast.tv' \ +curl 'http://localhost:8080/api/admin/config/welcomemessage' \ -H 'accept: */*' \ -H 'accept-language: en-US,en;q=0.9' \ -H 'authorization: Basic YWRtaW46aG05dTl4a2c=' \ -H 'cache-control: no-cache' \ -H 'content-type: text/plain;charset=UTF-8' \ - -H 'origin: https://webv2.owncast.tv' \ + -H 'Origin: http://localhost:8080' \ -H 'pragma: no-cache' \ - -H 'referer: https://webv2.owncast.tv/admin/config-chat/' \ + -H 'referer: http://localhost:8080/admin/config-chat/' \ -H 'sec-fetch-dest: empty' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-gpc: 1' \ -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36' \ --data-raw '{"value":"This is an example chat welcome message."}' \ - --compressed ; -curl 'https://webv2.owncast.tv/api/admin/status' \ - -H 'authority: webv2.owncast.tv' \ - -H 'accept: */*' \ - -H 'accept-language: en-US,en;q=0.9' \ - -H 'authorization: Basic YWRtaW46aG05dTl4a2c=' \ - -H 'cache-control: no-cache' \ - -H 'pragma: no-cache' \ - -H 'referer: https://webv2.owncast.tv/admin/config-chat/' \ - -H 'sec-fetch-dest: empty' \ - -H 'sec-fetch-mode: cors' \ - -H 'sec-fetch-site: same-origin' \ - -H 'sec-gpc: 1' \ - -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36' \ - --compressed \ No newline at end of file + --compressed \ No newline at end of file