Skip to content

Commit d1d2b49

Browse files
author
hetao
committed
fix Content-Length and update sphinx api
1 parent 69cf8f8 commit d1d2b49

File tree

2 files changed

+1713
-1694
lines changed

2 files changed

+1713
-1694
lines changed

plugins/SHttp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ public static function post( $url, $params=array(), $cookies=array(), $returnHea
235235
"Referer: $url\r\n" .
236236
"Connection: Close\r\n" .
237237
(!empty($cookies)?"Cookie: ".self::cookie_build($cookies)."\r\n":"").
238-
"Content-type: application/x-www-form-urlencoded\r\n" .
239-
"Content-length: ".strlen($content)."\r\n",
238+
"Content-Type: application/x-www-form-urlencoded\r\n" .
239+
"Content-Length: ".strlen($content)."\r\n",
240240
'content' => $content
241241
)
242242

0 commit comments

Comments
 (0)