[pmg-devel] applied: [PATCH http-server v3 1/1] AnyEvent: extend send_file with content-type

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Oct 10 13:12:49 CEST 2019


On 10/10/19 11:21 AM, Dominik Csapak wrote:
> for pmg, we need to send temporary files (for the attachment quarantine),
> but we cannot know beforehand what content-type it is, so we
> optionally give it to send_file_start
> 
> we give a hash with the open filehandle and the content-type in that case
> 
> this also removes the unnecessary open on the filename, since we open
> it in send_file_start anyway...
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  PVE/APIServer/AnyEvent.pm | 39 +++++++++++++++++++++++++--------------
>  1 file changed, 25 insertions(+), 14 deletions(-)
> 

applied, thanks!



More information about the pmg-devel mailing list