ENGINE-233: added cid check to bloblist_add ENGINE-233
authorKrista Bennett <krista@pep-project.org>
Tue, 29 Aug 2017 15:06:57 +0200
branchENGINE-233
changeset 2017cb9212af4a8c
parent 2013 3ef02ca70fec
child 2020 bb198b900e2d
ENGINE-233: added cid check to bloblist_add
src/bloblist.c
     1.1 --- a/src/bloblist.c	Mon Aug 28 15:52:45 2017 +0200
     1.2 +++ b/src/bloblist.c	Tue Aug 29 15:06:57 2017 +0200
     1.3 @@ -137,6 +137,10 @@
     1.4                  free(bloblist);
     1.5                  return NULL;
     1.6              }
     1.7 +            /* Default behaviour, can be overwritten post-allocation with
     1.8 +               set_blob_content_disposition */
     1.9 +            if (strstr(filename, "cid://") == filename)
    1.10 +                bloblist->disposition = PEP_CONTENT_DISP_INLINE;
    1.11          }
    1.12  
    1.13          bloblist->value = blob;