TinyHttp.php put方法出错: cannot represent a stream of type MEMORY as a STDIO FILE
TinyHttp.php put方法bug修改
case 'put' :
$opts[CURLOPT_PUT] = TRUE;
if (strlen($req_body)) {
$buf = tmpfile();
fwrite($buf, $req_body);
fseek($buf, 0);
$opts[CURLOPT_INFILE] = $buf;
$opts[CURLOPT_INFILESIZE] = strlen($req_body);
}
break;
估计put 方法用的人少,这个bug一直没发现。

