accept application/json

Fetching a tarball from GitHub returns a 415 if the request doesn't accept `application/json`.

Writing the test took longer than writing the fix :)

fixes https://github.com/npm/npm/issues/6729
Should probably note that you are emulating GitHub's behavior here since it is so bizarre.