# 中间件文档树深度超限 - 依然存在

**URL:** https://meta.discourse.org/t/middleware-document-tree-depth-exceeded-still/402426
**Category:** Bug
**Tags:** fixed
**Created:** [2026年五月7日 19:53 UTC](https://meta.discourse.org/t/middleware-document-tree-depth-exceeded-still/402426 "2026-05-07T19:53:41Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2026年五月8日 13:56 UTC](https://meta.discourse.org/t/middleware-document-tree-depth-exceeded-still/402426/2 "2026-05-08T13:56:38Z")

</div>

> <https://github.com/discourse/discourse/pull/39849>
>
> Previously, direct upload requests with crawler localization parameters could st…ill be parsed as HTML when the response carried crawler HTML headers, raising Nokogiri document depth errors.
> 
> This change skips localization rewriting for non-localizable request paths before parsing the response, including relative URL root installs.

---

_[View the full topic](https://meta.discourse.org/t/middleware-document-tree-depth-exceeded-still/402426)._
