Commit 43fa62c
fix: rewrite markdown doc requests internally instead of 303 redirect (#808)
Agents requesting docs with Accept: text/markdown were getting 303
redirects to .md URLs, which many HTTP clients don't follow properly.
Instead of redirecting, internally rewrite the request to the .md route
and serve the markdown content directly.
https://claude.ai/code/session_01VBx5hnhWturAn1bBo68sCt
Co-authored-by: Claude <noreply@anthropic.com>1 parent 202961c commit 43fa62c
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments