Permalink
Browse files

bugfix - #47 - change results_url (#48)

It seems the result_url is no longer available in the response as ‘alternate_url’. Now we combine the ‘short_id’ with a base url.
  • Loading branch information...
Dries-Vandenneucker authored and laurencei committed May 30, 2018
1 parent 424d3a8 commit 34e6a1a989cd6a578363b58262940bc4861d0d57
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/Monitors/Ssl.php
@@ -154,7 +154,7 @@ protected function checkForSslRecordChanges($domain, $result)
protected function saveSslRecord($domain, $result)
{
$record['grade'] = $result['results']['grade'];
$record['results_url'] = $result['internals']['alternate_url'];
$record['results_url'] = 'https://www.htbridge.com/ssl/?id=' . $result['internals']['short_id'];
if (isset($result['certificates']['information'][0])) {
$record['valid'] = $result['certificates']['information'][0]['valid_now'];

0 comments on commit 34e6a1a

Please sign in to comment.