Add BFTask support for HEAD request