mirror of
https://github.com/ufilesdk-dev/ufile-phpsdk.git
synced 2025-12-20 15:56:56 +08:00
Update http.php
优化返回值兼容Etag
This commit is contained in:
parent
14093f24bf
commit
2af55e185a
@ -253,7 +253,11 @@ function UCloud_Client_Ret($resp)
|
||||
}
|
||||
|
||||
$etag = UCloud_Header_Get($resp->Header, 'ETag');
|
||||
if ($etag != '') $data['ETag'] = $etag;
|
||||
if ($etag != ''){
|
||||
$data['ETag'] = $etag;
|
||||
}else{
|
||||
$data['ETag'] = UCloud_Header_Get($resp->Header, 'Etag');
|
||||
}
|
||||
if (floor($code/100) == 2) {
|
||||
return array($data, null);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user