Comments (3)
Can you provide a minimal test case first?
# vim:set ft= ts=4 sw=4 et fdm=marker:
use t::RX 'no_plan';
repeat_each(1);
run_tests();
__DATA__
=== TEST 1: prefix matching with method, and matched is not nil.
--- config
location /t {
content_by_lua_block {
local radix = require("resty.radixtree")
local rx = radix.new({
{
paths = "/hello*",
methods = {"GET"},
metadata = "metadata prefix matching with GET, matched = {}",
},
})
local opts = {method = "GET", matched = {}}
ngx.say(rx:match("/hello1", opts))
}
}
--- request
GET /t
--- no_error_log
[error]
--- response_body
metadata prefix matching with GET, matched = {}
from lua-resty-radixtree.
I will fix it
from lua-resty-radixtree.
Can you provide a minimal test case first?
from lua-resty-radixtree.
Related Issues (20)
- ci did not run
- the end * of the path dont matchs some cases HOT 2
- 'Unauthenticated git protocol on port 9418 is no longer supported' while installing via luarocks HOT 2
- unexpected matching result HOT 14
- update the luarocks to version 3.8 HOT 1
- Can support begin xxx*.xxx.com? HOT 4
- Q: what's the math rule ? HOT 1
- Q: `radix_tree_prev` iterates through all nodes with a lexicographic order less than `path` HOT 5
- How to match host with wildcard name HOT 1
- How to delete a node of a radixtree? HOT 1
- Q:if use the Parameters in path , how to get path param in handler HOT 2
- Reporting a vulnerability
- radixtree.new cost nearly 120s when uri_routes num is 10w
- build in mingw64 environment HOT 3
- We should not use ':' as the param indicator HOT 3
- 能否给个中文的readme
- request help: install: 无法获取"librestyradixtree.so" 的文件状态(stat): 没有那个文件或目录 HOT 1
- release new version HOT 1
- radixtree free memory fail, nginx worker exit HOT 6
- release a new version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lua-resty-radixtree.