serokell / hackage-search

An application that lets you search for anything on Hackage
https://hackage-search.serokell.io/
24 stars 0 forks source link

Remove trailing '/' from nginx proxyPass config to fix query encoding #19

Closed zhenyavinogradov closed 3 years ago

zhenyavinogradov commented 3 years ago

With trailing slash nginx decodes urlencoded query, for example instead of '/abc%2Fdef' it passes '/abc/def' to the backend, which breaks the search. Removing trailing slash makes nginx pass the query verbatim.

Fixes #17