Fix http auth while setting correctly header.