Merge pull request #8 from thouveng/use-json-for-basic-auth

Use JSON format with basic auth