我使用workman做ws客户端的时候,设置headers,设置Host能生效,设置HTTP_ACCEPT_ENCODING却无效, 请教下是不能设置HTTP_ACCEPT_ENCODINGzh这个headers吗?
应该这样用:
$ws_connection->onConnect = function($connection){ $connection->wsHttpHeader = array( 'Host' => 'something here', 'Accept-Encoding' => "something here", ); };
应该这样用: