File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,15 +50,15 @@ if [ ! -z "${ALT_URL}" ]; then
5050fi
5151
5252# Checks for valid url
53- match=$( curl " ${ping_url} /ping" -H " user_key : ${API_KEY} " | grep -o " Rosette API" )
53+ match=$( curl " ${ping_url} /ping" -H " X-RosetteAPI-Key : ${API_KEY} " | grep -o " Rosette API" )
5454if [ " ${match} " = " " ]; then
5555 echo -e " \n${ping_url} server not responding\n"
5656 exit 1
5757fi
5858
5959# Checks if Rosette API key is valid
6060function checkAPI {
61- match=$( curl " ${ping_url} /ping" -H " user_key : ${API_KEY} " | grep -o " forbidden" )
61+ match=$( curl " ${ping_url} /ping" -H " X-RosetteAPI-Key : ${API_KEY} " | grep -o " forbidden" )
6262 if [ ! -z $match ]; then
6363 echo -e " \nInvalid Rosette API Key"
6464 exit 1
Original file line number Diff line number Diff line change @@ -40,15 +40,15 @@ if [ ! -z "${ALT_URL}" ]; then
4040fi
4141
4242# Checks for valid url
43- match=$( curl " ${ping_url} /ping" -H " user_key : ${API_KEY} " | grep -o " Rosette API" )
43+ match=$( curl " ${ping_url} /ping" -H " X-RosetteAPI-Key : ${API_KEY} " | grep -o " Rosette API" )
4444if [ " ${match} " = " " ]; then
4545 echo -e " \n${ping_url} server not responding\n"
4646 exit 1
4747fi
4848
4949# Checks if Rosette API key is valid
5050function checkAPI {
51- match=$( curl " ${ping_url} /ping" -H " user_key : ${API_KEY} " | grep -o " forbidden" )
51+ match=$( curl " ${ping_url} /ping" -H " X-RosetteAPI-Key : ${API_KEY} " | grep -o " forbidden" )
5252 if [ ! -z $match ]; then
5353 echo -e " \nInvalid Rosette API Key"
5454 exit 1
You can’t perform that action at this time.
0 commit comments