mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Removed case senstivity from savin
Former-commit-id: 1591534e5b64859e8a4fb4811644ef47ce8e172f [formerly 451962c969cfd77bf8cb4f8ec49d2604675a5246] [formerly b53ba2a5e4fd889e0838d1509143099546589614 [formerly fe69bdee4f
]]
Former-commit-id: 6063556d33984e3d9d448681c6b379b879a6d6c5 [formerly 7d66254c32a990820a5fe68622d78fd78ff580da]
Former-commit-id: b91d89eda14dde6a7f802da2fa25acf9deb1ba86
This commit is contained in:
@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
@ -40,7 +41,7 @@ func wshandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
var p CowyoData
|
||||
err = p.load(m.Title)
|
||||
err = p.load(strings.ToLower(m.Title))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user