Fix HTTP server library handling of credentials