src/Hades/Http/Request.php
public function uri()
    {
        // in iis and forward proxy, uri in X_ORIGINAL_URL
        if (isset($this->server['X_ORIGINAL_URL']) && !empty($this->server['X_ORIGINAL_URL'])) {
            return $this->server['X_ORIGINAL_URL'];
        }

        return $this->server['REQUEST_URI'];
    }
public function uri()
    {
        // in iis and forward proxy, uri in X_ORIGINAL_URL
        if (isset($this->server['X_ORIGINAL_URL']) && !empty($this->server['X_ORIGINAL_URL'])) {
            return $this->server['X_ORIGINAL_URL'];
        }

        return $this->server['REQUEST_URI'];
    }
public function uri ( ) { // in iis and forward proxy, uri in X_ORIGINAL_URL if ( isset ( $ this -> server [ 'X_ORIGINAL_URL' ] ) && ! empty ( $ this -> server [ 'X_ORIGINAL_URL' ] ) ) { return $ this -> server [ 'X_ORIGINAL_URL' ] ; } return $ this -> server [ 'REQUEST_URI' ] ; }
get request uri
get request uri