support protocol agnostic urls ( //path )

parent c0ceb849
......@@ -127,7 +127,7 @@ tus_response(VRT_CTX, const struct VPFX(tus_server) *tussrv,
if (fdisk != NULL && fdisk->location_length > 0) {
/* cannot happen for creation */
assert(resp->status != 201);
if (fdisk->location[0] == '/') {
if (fdisk->location[0] == '/' && fdisk->location[1] != '/') {
bprintf(buf, "%s%s", resp->schemeauth, fdisk->location);
loc = buf;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment