fix an order mistake in DS handling HTTP requests