|
|
ae0bec6c3b
|
feat(internal): 实现 internal 指令
- 新增 IsInternalRedirect 检测内部重定向请求
- static handler 支持 internal 访问限制
- proxy handler 支持 internal 访问限制
- 支持 X-Accel-Redirect 内部重定向
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-20 18:09:06 +08:00 |
|
|
|
82658359cb
|
fix(matcher): 修正 ParseRegexPattern nginx 风格正则解析
- ~ 现为大小写敏感正则(之前错误为不敏感)
- ~* 为大小写不敏感正则
- ^~ 为前缀优先匹配(非正则,之前错误标记为正则)
- 更新测试用例匹配正确行为
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-20 16:04:18 +08:00 |
|
|
|
c82e6dcdb7
|
test(matcher): 添加 location 匹配引擎完整测试覆盖
- conflict_test.go: 测试 location 冲突检测
- location_test.go: 测试 location 匹配逻辑
- named_test.go: 测试命名捕获组
- prefix_priority_test.go: 测试前缀匹配优先级
- prefix_test.go: 测试前缀匹配
- regex_test.go: 测试正则匹配
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-20 08:27:24 +08:00 |
|