From f325d07a8414a24bc088c2fc4ea9da34229ebc2d Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Wed, 30 Dec 2020 13:49:01 -0500 Subject: [PATCH] fix #478 --- app/src/main/java/awais/instagrabber/utils/Utils.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; }