Fixes double authorization headers

When using different HTTP basic credentials for separate requests, previous authentication headers are not cleared before adding the new ones.  As a consequence the request never gets authorized.

Signed-off-by: James Cauwelier <james.cauwelier@gmail.com>