diff --git a/app/src/main/java/awais/instagrabber/utils/Utils.java b/app/src/main/java/awais/instagrabber/utils/Utils.java index 786475f9..de4acea8 100644 --- a/app/src/main/java/awais/instagrabber/utils/Utils.java +++ b/app/src/main/java/awais/instagrabber/utils/Utils.java @@ -79,12 +79,9 @@ public final class Utils { if (signed == null) { return null; } - final String[] parts = signed.split("&"); final Map map = new HashMap<>(); - for (final String part : parts) { - final String[] partSplit = part.split("="); - map.put(partSplit[0], partSplit[1]); - } + map.put("ig_sig_key_version", Constants.SIGNATURE_VERSION); + map.put("signed_body", signed.split("&signed_body=")[1]); return map; }