mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-25 23:06:22 +02:00
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.
This commit is contained in:
@@ -68,7 +68,7 @@ public class Http {
|
|||||||
Map<String, String> cookiesParsed = new HashMap<>();
|
Map<String, String> cookiesParsed = new HashMap<>();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
URL parsed = new URL(this.url);
|
URL parsed = new URL(u);
|
||||||
String cookieStr = "";
|
String cookieStr = "";
|
||||||
|
|
||||||
String[] parts = parsed.getHost().split("\\.");
|
String[] parts = parsed.getHost().split("\\.");
|
||||||
|
Reference in New Issue
Block a user