Mount media/ws/proxy/invoke routes in httpx, force gold onto Go via MARQDO_WEB_PLUGIN, and case-fold middleware header checks so all seven web live golds pass against libweb.so. Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
267 B
Go
13 lines
267 B
Go
package httpx
|
|
|
|
import "testing"
|
|
|
|
func TestGoMuxPattern(t *testing.T) {
|
|
if got := goMuxPattern("/_media/{*key}"); got != "/_media/{key...}" {
|
|
t.Fatalf("got %q", got)
|
|
}
|
|
if got := goMuxPattern("/post/{slug}"); got != "/post/{slug}" {
|
|
t.Fatalf("got %q", got)
|
|
}
|
|
}
|