mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-07 11:08:36 +00:00
allow blank format field in post, so that libcurl can be used to
insert rhizome bundles.
This commit is contained in:
parent
628faaedbf
commit
2802f75fa2
@ -425,7 +425,8 @@ static int insert_mime_part_header(struct http_request *hr, const struct mime_pa
|
||||
|| strcmp(h->content_type.subtype, "manifest") != 0
|
||||
)
|
||||
return http_response_form_part(r, "Unsupported Content-Type in", PART_MANIFEST, NULL, 0);
|
||||
if (strcmp(h->content_type.format, "text+binarysig") != 0)
|
||||
if ((strcmp(h->content_type.format, "text+binarysig") != 0)
|
||||
&&strlen(h->content_type.format))
|
||||
return http_response_form_part(r, "Unsupported rhizome/manifest format in", PART_MANIFEST, NULL, 0);
|
||||
r->u.insert.current_part = PART_MANIFEST;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user