summaryrefslogtreecommitdiff
path: root/system/api/search.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-04-11 14:51:22 -0700
committerSteve Manuel <nilslice@gmail.com>2017-04-11 14:51:22 -0700
commitb961e74656b0db97d5b3c14295ca8c6ba16b4424 (patch)
tree3809b37535114c337452a3ab7320ca51ede02d06 /system/api/search.go
parent3f1d6b5df128973eb7c4c8a92c2b34fde2fb1ba0 (diff)
change implementation of search to opt-in per type, less risky if sensative data is added
Diffstat (limited to 'system/api/search.go')
-rw-r--r--system/api/search.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/api/search.go b/system/api/search.go
index ae6ac1c..25a1bae 100644
--- a/system/api/search.go
+++ b/system/api/search.go
@@ -44,7 +44,7 @@ func searchContentHandler(res http.ResponseWriter, req *http.Request) {
// execute search for query provided, if no index for type send 404
matches, err := db.SearchType(t, q)
if err == db.ErrNoSearchIndex {
- res.WriteHeader(http.StatusBadRequest)
+ res.WriteHeader(http.StatusNotFound)
return
}
if err != nil {