Django Book 翻译
菜单>:
TOC
返回
原文:
To avoid altering non-HTML requests, the middleware checks the responses ``Content-Type`` header before modifying it. Only pages that are served as ``text/html`` or ``application/xml+xhtml`` are modified.
翻译:
为了避免转换非 HTML 请求,中间件在编辑响应结果之前对它的 ``Content-Type`` 头标进行检查。只有标记为 ``text/html`` 或 ``application/xml+xhtml`` 的页面才会被修改。
备注:
译者: