fix direction of http_spec && invoke before:http task if present