Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #15 from imAtulSharma/v9.3
Browse files Browse the repository at this point in the history
fix: get redirected url from header using key instead of index
  • Loading branch information
imAtulSharma authored Aug 25, 2024
2 parents 76a5814 + 9b69f88 commit f2bfb27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private String getRedirectUrl(String url) {
mListener.onError(ioException.toString());
}

redUrl = connection.getHeaderField(6);
redUrl = connection.getHeaderField("location");
connection.disconnect();

return redUrl;
Expand Down

0 comments on commit f2bfb27

Please sign in to comment.