Skip to content

Commit

Permalink
swift类库完善
Browse files Browse the repository at this point in the history
  • Loading branch information
breath-co2 committed Jun 11, 2014
1 parent cdceead commit 6e54b81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/storage/driver/swift.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ protected function get_response($uri, $method, $headers = array(), $query = arra
{
$data = fread($body, $chunk_size);
$len = dechex(strlen($data));
fwrite($fp, $len . "\n" . $data . "\r\n");
fwrite($fp, $len . "\r\n" . $data . "\r\n");
}
# 指针移回去
rewind($body, 0);
Expand Down Expand Up @@ -967,6 +967,7 @@ protected function build_request_line($method, $uri, $query = null)
{
if (is_array($query))
{
$query_str = '';
foreach ($query as $key => $value)
{
$query_str .= '&' . rawurlencode($key) . '=' . rawurlencode($value) ;
Expand Down

0 comments on commit 6e54b81

Please sign in to comment.