diff --git a/plugins/fact/web.go b/plugins/fact/web.go index 4d3dd5c..ad321c8 100644 --- a/plugins/fact/web.go +++ b/plugins/fact/web.go @@ -21,7 +21,7 @@ func (p *FactoidPlugin) registerWeb() { } type SearchReq struct { - Query string `in:"query"` + Query string `in:"form=query"` } func (p *FactoidPlugin) handleSearch(w http.ResponseWriter, r *http.Request) {