commit 7cd6880b84f3bba0cc8b11ef452dba18e0b51155 from: Omar Polo date: Wed Nov 18 08:34:42 2020 UTC correctly handle also non absolute URLs commit - ae2ad03ec0ae5f2300472239eb48f3e23d467fe2 commit + 7cd6880b84f3bba0cc8b11ef452dba18e0b51155 blob - d0f03a7db9ba906f262702ffaf33398ee0d23b13 blob + 7233754631e9a2382e77a2cdb9eea80e4810d239 --- gmid.c +++ gmid.c @@ -201,6 +201,10 @@ url_start_of_request(char *url) if ((s = url_after_proto(url)) == NULL) return NULL; + + /* non-absolute URL */ + if (s == url) + return s; if ((t = strstr(s, "/")) == NULL) return s + strlen(s);