webman是不是不支持接收Content-Type: application/octet-stream的數(shù)據(jù)流?
Request Header請(qǐng)求頭Content-Type: application/octet-stream,請(qǐng)求方法:POST。用PHP原生代碼var_dump(file_get_content('php://input'));可以正常獲取數(shù)據(jù)流
但是在webman中file_get_content('php://input'),就為空。
正確姿勢(shì):$request->rawBody();
別動(dòng)不動(dòng)就bug,自己就是最大的bug,都不看手冊(cè) http://wtbis.cn/doc/webman/request.html#%E8%8E%B7%E5%BE%97%E5%8E%9F%E5%A7%8B%E8%AF%B7%E6%B1%82post%E5%8C%85%E4%BD%93