Set query on head request too