fix bug where connections needing http auth didn't work if hosted behind a reverse proxy