forked from docs/doc-exports
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
885 B
885 B
Why Does My Browser Try to Download Instead of Displaying the Website File?
A web browser needs to get the correct media type to correctly handle an HTML file by opening the page instead of downloading the file. So, when uploading a website file (for example, index.html) via an API, you need to set its Content-Type header to the correct value text/html in the case of the HTML files.
Parent topic: How Do I Use Static Website Hosting?