Python gunicorn和PDF

Python gunicorn和PDF,python,flask,gunicorn,Python,Flask,Gunicorn,烧瓶的后端,用作烧瓶。在没有gunicorn的情况下运行api将允许我将PDF文件流式传输到客户端。使用gunicorn,PDF流式传输到运行gunicorn的控制台,并且永远不会返回到客户端。是否有gunicorn设置允许我从flask项目流式传输PDF文件 response = make_response(printReceipt(leddata)) #Generates the PDF File response.headers.set('Content-Type', 'applic

烧瓶的后端,用作烧瓶。在没有gunicorn的情况下运行api将允许我将PDF文件流式传输到客户端。使用gunicorn,PDF流式传输到运行gunicorn的控制台,并且永远不会返回到客户端。是否有gunicorn设置允许我从flask项目流式传输PDF文件

response = make_response(printReceipt(leddata))   #Generates the PDF File 
response.headers.set('Content-Type', 'application/pdf')
response.headers.set('Content-Disposition', 'attachment', filename='ledgerreceipt.pdf')            
return(response)