fixes #72

Authentication header was being ignored for basic auth. This should fix the issue.