polish

parent 7af19490
......@@ -76,6 +76,7 @@ tus_exp_thread(void *p)
pthread_mutex_lock(&e->mtx);
}
pthread_mutex_unlock(&e->mtx);
return (NULL);
}
void
......
......@@ -172,7 +172,7 @@ tus_metadata_validate(const char *s, struct test_meta *prev)
while (*s != '\0') {
if (*s == ',')
return (tus_metadata_validate(s + 1, &this));
if (i64[*s] == ILL)
if (i64[(uint8_t)*s] == ILL)
return (0);
s++;
}
......
......@@ -96,6 +96,7 @@ tus_response(VRT_CTX, const struct VPFX(tus_server) *tussrv,
if (resp->status == 301) {
AN(fdisk);
assert(fdisk->type == TUS_REDIRECT);
if (fdisk->metadata_length == 0)
resp->status = 410;
else if (fdisk->metadata[0] == '/')
......@@ -168,6 +169,8 @@ tus_response(VRT_CTX, const struct VPFX(tus_server) *tussrv,
case TUS_PARTIAL:
http_ForceHeader(r, hdr_concat, "partial");
break;
default:
INCOMPL();
}
break;
}
......
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