ospector/tmhOAuth — comment on commit 65e1e7e6f2bd6b0d05c2e0aa8ca543cd4bc5ea8f
File:  line 0
By themattharris:

Thanks for this. To make it easier to parse i've written this as:

```PHP
$protocol = 'http';
if (strtolower($_SERVER['HTTPS']) == 'on') {
$protocol = 'https';
} elseif (isset($_SERVER['SERVER_PORT']) && ($_SERVER['SERVER_PORT'] == '443')) {
$protocol = 'https';
}
```

It'll be in the next version of tmhOAuth released.