mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
mime: be tolerant about setting twice the same header list in a part.
This commit is contained in:
parent
14d6e207d3
commit
93e62adde8
@ -1356,6 +1356,7 @@ CURLcode curl_mime_headers(curl_mimepart *part,
|
||||
return CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
|
||||
if(part->flags & MIME_USERHEADERS_OWNER) {
|
||||
if(part->userheaders != headers) /* Allow setting twice the same list. */
|
||||
curl_slist_free_all(part->userheaders);
|
||||
part->flags &= ~MIME_USERHEADERS_OWNER;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user