add ? before query parameters

This commit is contained in:
Hannes Mehnert 2022-04-11 17:08:10 +02:00
parent 3bee8a357d
commit a132a181c8

View file

@ -486,7 +486,7 @@ let add_routes datadir configdir =
let parent = parent ^ "/" in let parent = parent ^ "/" in
let url = match Dream.queries req with let url = match Dream.queries req with
| [] -> parent | [] -> parent
| xs -> parent ^ (Dream.to_form_urlencoded xs) | xs -> parent ^ "?" ^ (Dream.to_form_urlencoded xs)
in in
Dream.redirect ~status:`Temporary_Redirect req url Dream.redirect ~status:`Temporary_Redirect req url
in in