Minor improvements on http controllers.