Fixed mistakes in the http check.