Fork me on GitHub
#chestnut
<
2018-01-13
>
cjsauer18:01:08

@featheredtoast Appreciate the link, I believe I've figured it out, but I've ran into a very important question: what order can I expect the middleware configuration to be wrapped in? I need to be careful where I place my SSL redirect in the stack...

featheredtoast23:01:58

iirc It's the order it's declared in the middleware vector, eg in https://github.com/plexus/chestnut/blob/master/src/leiningen/new/chestnut/src/clj/chestnut/config.clj#L9 it's run in order: wrap defaults, wrap with logger, wrap gzip