Open GoogleCodeExporter opened 9 years ago
I have experienced this same problem. Any word yet when this is going to be
fixed? Link headers are commonly used in REST services.
Original comment by pdj...@gmail.com
on 4 Aug 2015 at 11:39
The Link header URLs are not being parsed correctly due to this regular
expression in the "RestClient/src/org/rest/client/util/Utils.java" file:
public static String autoLinkUrls(String input){
RegExp r = RegExp.compile("(https?:\\/\\/(\\w|\\.)+(\\S+))","gim");
return r.replace(input, "<a target=\"_blank\" href=\"$1\">$1</a>");
}
The following should work:
RegExp r = RegExp.compile("(https?:\\/\\/([^\" >]*))","gim");
This will include everything after http(s):// that is not a " or a space or a >
Original comment by pdj...@gmail.com
on 4 Aug 2015 at 12:32
Original issue reported on code.google.com by
hill.nic...@gmail.com
on 17 Nov 2014 at 9:38