Open mbateman opened 9 years ago
Good fix, I did comment on this in the other pull request, looks good except if we can somehow generify it, it would by great.
How could it be generified?
You have hard-coded https://github.com/mbateman
, when I meant generify I meant to find a way to not hard-code it so it works for everyone else as well/.
artist_endpoint_returns_some_json() failing with the following error: java.net.SocketException: Unexpected end of file from server
Solution is in the api documentation:
Your application must provide a User-Agent string that identifies itself – preferably something that follows RFC 1945.
So added "User-Agent", "RestAPIUnifier/1.0 +https://github.com/mbateman" to request properties.