We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1899bf9 + 2041c94 commit aecd4bfCopy full SHA for aecd4bf
src/base_facebook.php
@@ -1148,10 +1148,16 @@ protected function getHttpProtocol() {
1148
}
1149
return 'http';
1150
1151
+ /*apache + variants specific way of checking for https*/
1152
if (isset($_SERVER['HTTPS']) &&
1153
($_SERVER['HTTPS'] === 'on' || $_SERVER['HTTPS'] == 1)) {
1154
return 'https';
1155
1156
+ /*nginx way of checking for https*/
1157
+ if (isset($_SERVER['SERVER_PORT']) &&
1158
+ ($_SERVER['SERVER_PORT'] === '443')) {
1159
+ return 'https';
1160
+ }
1161
1162
1163
0 commit comments