mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Removed uri component decoding #1
This commit is contained in:
parent
a8ac2dd877
commit
471a6fa275
1 changed files with 1 additions and 7 deletions
|
@ -188,13 +188,7 @@ app.get('/ask', function (req, res) {
|
|||
} else {
|
||||
if (req.query.q && req.query.data) {
|
||||
let subj = req.query.subj || ''
|
||||
let question
|
||||
try {
|
||||
question = decodeURIComponent(req.query.q)
|
||||
} catch (e) {
|
||||
console.error(req.query)
|
||||
throw e
|
||||
}
|
||||
let question = req.query.q
|
||||
let recData = {}
|
||||
try {
|
||||
recData = JSON.parse(req.query.data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue