Skip to content

Commit df81d24

Browse files
authored
Add follow redirect to curl request
1 parent 94ae201 commit df81d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quiz.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ fi
9494
# Question formatting
9595
##
9696
function get_questions(){
97-
content=$( curl -s ${url}/${quiz_endpoint} -G -d limit=1 -d category=${category} -d difficulty=${difficulty} -d tags=${tags} -H "X-Api-Key: ${API_KEY}" -o ${temp_quiz} )
97+
content=$( curl -Ls ${url}/${quiz_endpoint} -G -d limit=1 -d category=${category} -d difficulty=${difficulty} -d tags=${tags} -H "X-Api-Key: ${API_KEY}" -o ${temp_quiz} )
9898
}
9999

100100
##

0 commit comments

Comments
 (0)