polish

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