Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 449-455 (lines=7) @@
446
				$headers .= substr($cookie_headers,0,-2) . "\r\n";
447
			} 
448
		}
449
		if(!empty($this->rawheaders))
450
		{
451
			if(!is_array($this->rawheaders))
452
				$this->rawheaders = (array)$this->rawheaders;
453
			while(list($headerKey,$headerVal) = each($this->rawheaders))
454
				$headers .= $headerKey.": ".$headerVal."\r\n";
455
		}
456
		if(!empty($content_type)) {
457
			$headers .= "Content-type: $content_type";
458
			if ($content_type == "multipart/form-data")
@@ 620-626 (lines=7) @@
617
				$headers[] = substr($cookie_str,0,-2);
618
			}
619
		}
620
		if(!empty($this->rawheaders))
621
		{
622
			if(!is_array($this->rawheaders))
623
				$this->rawheaders = (array)$this->rawheaders;
624
			while(list($headerKey,$headerVal) = each($this->rawheaders))
625
				$headers[] = $headerKey.": ".$headerVal;
626
		}
627
		if(!empty($content_type)) {
628
			if ($content_type == "multipart/form-data")
629
				$headers[] = "Content-type: $content_type; boundary=".$this->_mime_boundary;