@bzzjh, I think I figured out why it doesn't work for me. I'm using .dev domain, which _requires_ https and browsers know about this and automatically redirect any and all http requests to https. what is tld of your domain?
> dev top-level domain is included on the HSTS preload list, making
HTTPS required on all connections to . dev websites and pages without needing individual HSTS registration or configuration.
@Redcoat I opened new issue and provided more details. I first though this is a bug related to HTTP->HTTPS redirect, but after some testing seems it isn't. Might be related to the tld of the domain used.