daveaglick / NetlifySharp

A .NET API Client for Netlify
http://netlifysharp.netlify.com/
MIT License
16 stars 6 forks source link

Add default http client initializing. #4

Closed MikDal002 closed 2 years ago

MikDal002 commented 2 years ago

Hello! I've tried to use this library and unfortunately came across the bug. Here is the fix :).

daveaglick commented 2 years ago

Thanks! So to make sure I understand the issue here, it's when you pass null into the constructor for an HttpClient? Seems like a nice defensive fix to check for that.

MikDal002 commented 2 years ago

I used var myClient = new NetlifyClient("my-access-code");. It was enough to came across this problem :). I'm glad that you merged those changes :).