Code Duplication    Length = 2-2 lines in 2 locations

main/inc/lib/magpierss/extlib/Snoopy.class.inc 2 locations

@@ 464-465 (lines=2) @@
461
		}
462
		if(!empty($body))	
463
			$headers .= "Content-length: ".strlen($body)."\r\n";
464
		if(!empty($this->user) || !empty($this->pass))	
465
			$headers .= "Authorization: BASIC ".base64_encode($this->user.":".$this->pass)."\r\n";
466
467
		$headers .= "\r\n";
468
		
@@ 635-636 (lines=2) @@
632
		}
633
		if(!empty($body))	
634
			$headers[] = "Content-length: ".strlen($body);
635
		if(!empty($this->user) || !empty($this->pass))	
636
			$headers[] = "Authorization: BASIC ".base64_encode($this->user.":".$this->pass);
637
			
638
		for($curr_header = 0; $curr_header < count($headers); $curr_header++) {
639
			$cmdline_params .= " -H \"".$headers[$curr_header]."\"";