We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fe2178 commit fc50a5dCopy full SHA for fc50a5d
1 file changed
src/OpCacheGUI/Network/Request.php
@@ -105,8 +105,14 @@ public function post($name)
105
return $this->postVariables[$name];
106
}
107
108
- public function getPath()
+ public function getUrl()
109
{
110
- return $this->serverVariables['REQUEST_URI'];
+ $scheme = 'http';
111
+
112
+ if (isset($this->serverVariables['HTTPS']) && $this->serverVariables['HTTPS'] === 'on') {
113
+ $scheme .= 's';
114
+ }
115
116
+ return $scheme . '://' . $this->serverVariables['HTTP_HOST'] . $this->serverVariables['REQUEST_URI'];
117
118
0 commit comments