Skip to content

Commit 8d92396

Browse files
committed
Revert "Making https optional (#29)"
This reverts commit 86866ee.
1 parent 86866ee commit 8d92396

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/Drivers/IpStackDriver.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,6 @@ public function getRaw($ip)
7474
*/
7575
protected function getUrl($ip)
7676
{
77-
$protocol = 'https';
78-
79-
if (!empty(array_get($this->config, 'http'))) {
80-
$protocol = 'http';
81-
}
82-
83-
return $protocol.'://api.ipstack.com/'.$ip.'?access_key='.array_get($this->config, 'key');
77+
return 'https://api.ipstack.com/'.$ip.'?access_key='.array_get($this->config, 'key');
8478
}
8579
}

src/config/config.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
|
3434
*/
3535
'key' => env('GEOIP_IPSTACK_KEY'),
36-
'http' => env('GEOIP_IPSTACK_HTTP', false),
3736
],
3837

3938
/*

0 commit comments

Comments
 (0)