Changeset 2236 -- 2010-11-09 22:31:48
- Author
heavenshell
- Comment
- Fix mb_strlen to strlen to get bytes. Thx to yuya-takeyama.
Diffs
Net_KyotoTycoon/trunk/src/HTTP/TsvRpc/Client.php
@@ -76,7 +76,7 @@
/**
* Version.
*/
- const VERSION = '0.0.2';
+ const VERSION = '0.0.3';
/**
* Base url.
@@ -158,7 +158,7 @@
$uri = $this->_base . $method;
$headers = array(
'Content-Type' => "text/tab-separated-values; colenc=$encoding",
- 'Content-Length' => mb_strlen($content),
+ 'Content-Length' => strlen($content),
'Connection' => 'Keep-Alive',
'Keep-Alive' => 300,
);