feat: support form values in gateway (#2158)

This commit is contained in:
Kevin Wan
2022-07-16 23:40:53 +08:00
committed by GitHub
parent 453fa309b1
commit b206dd28a3
4 changed files with 47 additions and 20 deletions

View File

@@ -46,3 +46,10 @@ func TestNewRequestParserWithVarsWithWrongBody(t *testing.T) {
assert.NotNil(t, err)
assert.Nil(t, parser)
}
func TestNewRequestParserWithForm(t *testing.T) {
req := httptest.NewRequest("GET", "/val?a=b", nil)
parser, err := newRequestParser(req, nil)
assert.Nil(t, err)
assert.NotNil(t, parser)
}