summaryrefslogtreecommitdiff
path: root/worker.go
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2024-10-15 14:32:29 +0600
committerunwox <me@unwox.com>2024-10-15 14:32:29 +0600
commit36a70cd8311ea60e621edfffeddb545ba8792f42 (patch)
tree28a9155d48fdd15fefc36b6e9a63704befbd1e9b /worker.go
parent46a5b492b3396a879fb1fec985d906686a4266ed (diff)
always provide http headers as an array to lua process
Diffstat (limited to 'worker.go')
-rw-r--r--worker.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/worker.go b/worker.go
index 2d7d3ad..54a3757 100644
--- a/worker.go
+++ b/worker.go
@@ -137,11 +137,7 @@ func (w *Worker) Listen(queue chan any) {
flatQr := make(map[string]any)
qr := r.request.URL.Query()
for k := range qr {
- if len(qr[k]) > 1 {
- flatQr[k] = stringListToAny(qr[k])
- } else {
- flatQr[k] = qr.Get(k)
- }
+ flatQr[k] = stringListToAny(qr[k])
}
res["query"] = flatQr