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>
12 lines
885 B
HTML
12 lines
885 B
HTML
<a name="obs_faq_101704"></a><a name="obs_faq_101704"></a>
|
|
|
|
<h1 class="topictitle1">Why Does My Browser Try to Download Instead of Displaying the Website File?</h1>
|
|
<div id="body0000002009958049"><p id="obs_faq_101704__p8060118">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, <strong id="obs_faq_101704__b1837916136363">index.html</strong>) via an API, you need to set its <strong id="obs_faq_101704__b976253117369">Content-Type</strong> header to the correct value <strong id="obs_faq_101704__b8110184213614">text/html</strong> in the case of the HTML files.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_faq_0500.html">How Do I Use Static Website Hosting?</a></div>
|
|
</div>
|
|
</div>
|
|
|