CodingAleCR / http_interceptor

A lightweight, simple plugin that allows you to intercept request and response objects and modify them if desired.
MIT License
134 stars 67 forks source link

Hotfix: Last '&' not being cut off of parameterized URLs #12

Closed stewemetal closed 4 years ago

stewemetal commented 4 years ago
String example = "example";
example.substring(0, example.length); 

This will return the same string, "example", as String.substring takes it's second parameter as non-inclusive, and String.length as an index means (max index + 1).

CodingAleCR commented 4 years ago

Exactly the reason why I am working on testing right now. Thanks, I will merge and release as soon as I can.