Fixed HSTS check with user-agent header

There was a bug where some sites won't return the HSTS header unless you have
a browser that supports the header. This is resolved by setting a user-agent
of a browser that supports HSTS.