mirror of
https://github.com/soypat/lneto.git
synced 2026-08-17 13:23:30 +00:00
Mux.MaxPathValues and other improvements
This commit is contained in:
@@ -214,7 +214,7 @@ func TestHandleRequestFields(t *testing.T) {
|
||||
var sm MuxSlice
|
||||
route, _, _ := strings.Cut(test.wantURI, "?") // Mux matches on path.
|
||||
sm.Handle(route, func(ex *Exchange) {
|
||||
gotMethod = string(ex.RequestMethod())
|
||||
gotMethod = string(ex.RequestMethodRaw())
|
||||
gotURI = string(ex.RequestTarget())
|
||||
gotHost = string(ex.RequestHeader("Host"))
|
||||
ex.WriteHeader(200)
|
||||
|
||||
Reference in New Issue
Block a user