| 
                                
                                    @@ 122-128 (lines=7) @@
                                 | 
                            
                                                            
                                    | 119 | 
                                     | 
                                    	 * @todo remove version-hack once core 8.1+ is supported  | 
                                
                                                            
                                    | 120 | 
                                     | 
                                    	 * @return string  | 
                                
                                                            
                                    | 121 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 122 | 
                                     | 
                                    	private function getServerProtocol() { | 
                                
                                                            
                                    | 123 | 
                                     | 
                                    		$ocVersion = \OC::$server->getConfig()->getSystemValue('version', '0.0.0'); | 
                                
                                                            
                                    | 124 | 
                                     | 
                                    		if (version_compare($ocVersion, '8.2.0', '<')) { | 
                                
                                                            
                                    | 125 | 
                                     | 
                                    			return Util::getServerProtocol();  | 
                                
                                                            
                                    | 126 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 127 | 
                                     | 
                                    		return $this->request->getServerProtocol();  | 
                                
                                                            
                                    | 128 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 129 | 
                                     | 
                                     | 
                                
                                                            
                                    | 130 | 
                                     | 
                                    	/**  | 
                                
                                                            
                                    | 131 | 
                                     | 
                                    	 * @todo remove version-hack once core 8.1+ is supported  | 
                                
                                                                                
                                 | 
                                
                                    @@ 134-140 (lines=7) @@
                                 | 
                            
                                                            
                                    | 131 | 
                                     | 
                                    	 * @todo remove version-hack once core 8.1+ is supported  | 
                                
                                                            
                                    | 132 | 
                                     | 
                                    	 * @return string  | 
                                
                                                            
                                    | 133 | 
                                     | 
                                    	 */  | 
                                
                                                            
                                    | 134 | 
                                     | 
                                    	private function getServerHost() { | 
                                
                                                            
                                    | 135 | 
                                     | 
                                    		$ocVersion = \OC::$server->getConfig()->getSystemValue('version', '0.0.0'); | 
                                
                                                            
                                    | 136 | 
                                     | 
                                    		if (version_compare($ocVersion, '8.2.0', '<')) { | 
                                
                                                            
                                    | 137 | 
                                     | 
                                    			return Util::getServerHost();  | 
                                
                                                            
                                    | 138 | 
                                     | 
                                    		}  | 
                                
                                                            
                                    | 139 | 
                                     | 
                                    		return $this->request->getServerHost();  | 
                                
                                                            
                                    | 140 | 
                                     | 
                                    	}  | 
                                
                                                            
                                    | 141 | 
                                     | 
                                     | 
                                
                                                            
                                    | 142 | 
                                     | 
                                    }  | 
                                
                                                            
                                    | 143 | 
                                     | 
                                     |