From 7fe3ce059b53cc2a41712484287e2ff79bf34a0f Mon Sep 17 00:00:00 2001 From: Philipp Erhardt Date: Mon, 18 Nov 2019 16:56:55 +0100 Subject: [PATCH] Use the passed url in cookiesForURL function While this doesn't make any difference, not using the argument is kind of bad. One could also remove the argument and use `this.url` directly. --- src/main/java/com/rarchives/ripme/utils/Http.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/utils/Http.java b/src/main/java/com/rarchives/ripme/utils/Http.java index 1776463a..0eabaea1 100644 --- a/src/main/java/com/rarchives/ripme/utils/Http.java +++ b/src/main/java/com/rarchives/ripme/utils/Http.java @@ -68,7 +68,7 @@ public class Http { Map cookiesParsed = new HashMap<>(); try { - URL parsed = new URL(this.url); + URL parsed = new URL(u); String cookieStr = ""; String[] parts = parsed.getHost().split("\\.");