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