Skip to content

Commit

Permalink
Fix: it needs at least 2 follows redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
heyder committed Dec 7, 2024
1 parent edb9fdc commit c953601
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def authenticate
'vars_post' => auth_data
}

res = send_request_cgi!(opts, 20, 1) # timeout and redirect_depth
res = send_request_cgi!(opts, 20, 2) # timeout and redirect_depth

if res&.get_cookies && res.get_cookies.match(/:?WSO2_AM_TOKEN_1_Default=([\w|-]+);\s/)
vprint_status('Got bearer token')
Expand Down

0 comments on commit c953601

Please sign in to comment.