I have a very strange problem:
On my test system with stack ghci DevelMain these lines in a handler work as expected:
x <- lookupGetParam "test"
liftIO $ print x
On the production system, same code, same stack resolver, the same lines print "Nothing" under certain circumstances. No difference if stack install or stack ghci DevelMain was used.
More specifically lookupGetParam is Nothing iff the app runs behind a reverse proxy AND the page requires login (I am logged in)
It DOES work
- if the app does NOT run behind the reverse proxy (I used an ssh -NL tunnel)
- OR if the page requires no login
To illustrate this:
where the result should always be like this:
Any idea what this could be?