![](/img/trans.png)
[英]How do I set the Content-Type of an existing S3 key with boto3?
[英]How do I set the content-type when using python's http server?
我嘗試使用send_header('Content-Type', 'text/html')
。 但是,這不起作用。
您不小心將“內容類型”中的“T”大寫,它應該是小寫的。
希望這可以幫助;)
可能需要雙引號? 參見示例。 我希望這有幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.