From 11feafbee0abeef720e6b72e787aa75e96b40ff1 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Sat, 1 Jun 2013 16:20:45 -0400 Subject: [PATCH] Changing URLs to GET for sharing --- plugins/factoid.go | 2 +- plugins/webTemplates.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/factoid.go b/plugins/factoid.go index 72191c1..38b7bb1 100644 --- a/plugins/factoid.go +++ b/plugins/factoid.go @@ -456,7 +456,7 @@ func (p *FactoidPlugin) RegisterWeb() *string { func (p *FactoidPlugin) serveQuery(w http.ResponseWriter, r *http.Request) { context := make(map[string]interface{}) - if e := r.PostFormValue("entry"); e != "" { + if e := r.FormValue("entry"); e != "" { var entries []Factoid p.Coll.Find(bson.M{"trigger": bson.M{"$regex": e}}).All(&entries) context["Count"] = fmt.Sprintf("%d", len(entries)) diff --git a/plugins/webTemplates.go b/plugins/webTemplates.go index 84af117..28d43a0 100644 --- a/plugins/webTemplates.go +++ b/plugins/webTemplates.go @@ -11,7 +11,7 @@ var factoidIndex string = `
-
+
Search for a factoid