Skip to content

Commit 09c2c2c

Browse files
author
Usman Liaqat
committed
WebRequest usage converted to HttpWebRequest
1 parent 28995cb commit 09c2c2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

IPGeolocation/IPGeolocationAPI.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,7 @@ private JObject GetUserAgentApiResponse(String jsonString, String url)
271271
private JObject GetApiResponse(String api, String urlParams)
272272
{
273273
String url = "https://api.ipgeolocation.io/" + api + "?" + urlParams;
274-
HttpWebRequest webrequest = (HttpWebRequest)WebRequest.Create(url);
275-
274+
var webrequest = HttpWebRequest.Create(url);
276275
webrequest.Method = "GET";
277276
webrequest.ContentType = "application/json";
278277

0 commit comments

Comments
 (0)