Closed ThomasJunk closed 5 years ago
You need to wrap the mux (or the handler) with the LoadAndSave() middleware.
There's a basic example here: https://github.com/alexedwards/scs#basic-use
Oh, sorry for bothering you. 😳 Stupid me!! Typical beginner mistake. Thanks for taking the time!
No worries. Hope it's smooth sailing from here :-)
I am having this issue on the go fiber framework, how and where do I pass in the http.handler into the LoadAndSave middleware
Abstract: Example code not working - resulting in stacktrace
Example used
At first, I suspected some issues with the filesystem (though
/tmp
should be writable). But even if you substitute thebolt
examplecode by thememstore
example code, the app crashes.Operating system:
Linux MYBOX 5.1.16-1-default #1 SMP Wed Jul 3 12:37:47 UTC 2019 (2af8a22) x86_64 x86_64 x86_64 GNU/Linux
Go Version:
go version go1.12.6 linux/amd64