accept say in headers for more length

This commit is contained in:
bel
2023-03-26 09:25:48 -06:00
parent ad967d5047
commit 67e504ced6
2 changed files with 6 additions and 1 deletions

View File

@@ -80,6 +80,9 @@ func (v01 *V01) globalQueries(r *http.Request) {
func (v01 *V01) globalQuerySay(r *http.Request) {
text := r.URL.Query().Get("say")
if text == "" {
text = r.Header.Get("say")
}
if text == "" {
return
}