"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/web/lib/fog/fogurlrequests.class.php" between
fogproject-1.5.8.tar.gz and fogproject-1.5.9.tar.gz

About: FOG is a Linux-based network computer cloning solution for Windows, Mac OSX and various Linux distributions that ties together a few open-source tools with a PHP-based web interface. FOG doesn’t use any boot disks, or CDs; everything is done via TFTP and PXE.

fogurlrequests.class.php  (fogproject-1.5.8):fogurlrequests.class.php  (fogproject-1.5.9)
skipping to change at line 554 skipping to change at line 554
$this->options[CURLOPT_HEADER] = true; $this->options[CURLOPT_HEADER] = true;
$this->options[CURLOPT_HTTPHEADER] = array( $this->options[CURLOPT_HTTPHEADER] = array(
'Content-Type: application/json', 'Content-Type: application/json',
"Content-Length: $datalen", "Content-Length: $datalen",
'Expect:', 'Expect:',
); );
} }
if ($file) { if ($file) {
$this->options[CURLOPT_FILE] = $file; $this->options[CURLOPT_FILE] = $file;
} }
$this->options[CURLOPT_USERAGENT] = 'Mozilla/5.0 (Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0';
foreach ((array) $urls as &$url) { foreach ((array) $urls as &$url) {
if ($method === 'GET') { if ($method === 'GET') {
$this->get($url); $this->get($url);
} else { } else {
$this->post($url, $data); $this->post($url, $data);
} }
unset($url); unset($url);
} }
return $this->execute(); return $this->execute();
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)