Skip to content

Commit 307de9e

Browse files
author
PenaFong
committed
修正创建同名目录的问题
1 parent 67b6ef0 commit 307de9e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

upyun.class.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ protected function _do_request($method, $path, $headers = NULL, $body= NULL, $fi
309309

310310
$response = curl_exec($ch);
311311
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
312+
var_dump($response);
312313

313314
if ($http_code == 0) throw new UpYunException('Connection Failed', $http_code);
314315

@@ -324,8 +325,6 @@ protected function _do_request($method, $path, $headers = NULL, $body= NULL, $fi
324325
else {
325326
list($header_string, $body) = explode("\r\n\r\n", $response, 2);
326327
}
327-
328-
//var_dump($http_code);
329328
if ($http_code == 200) {
330329
if ($method == 'GET' && is_null($file_handle)) {
331330
return $body;

0 commit comments

Comments
 (0)