Skip to content
This repository was archived by the owner on Apr 16, 2020. It is now read-only.
This repository was archived by the owner on Apr 16, 2020. It is now read-only.

Does't support header gzip #58

@wangbinxiang

Description

@wangbinxiang

I set
client.headers['Accept-Encoding'] = 'gzip';
and I get error
error occured: Error: Parsing error : Unexpected token in JSON at position 0, body= (�ZKo�8��W>]����"h�{�CoqI���!�Q�[��/)Ŷ$ӱ��yU�aМ9Cg>��ק���]�'_N5������B��M�,[�[���4+ʆw����t�M�y���E=�
w�����]�6ٞ~=�at��:��
Q�EB���y��������4�U���KW�m�/�
�岨.@fos}���<q������?w}�&]�[��s2�s��2M���9E�}zKnucW�٘H�%��܅Y�tg�zfUm�/��7e��X��i�<�1e}!ܷ��T�ThVTFU�2�ga����y�#�+w�,n�t{
��ꢑZ[]�26�ly�l,(� �,6P�-H�ӀA��P�Y�b�̳�?Ef�\�3����=��v/�u�)��ʖ���בa�Y��vQ� �Nj�{�q߲f+��2IhLXS��;������19�8��k9�;���#+�d��k�� ����<��,�a���l������lV��
Έ��81�I輸{zK�A�S=�����x��:B>�Sc��^^��
��o���}��-��c��
�X��C��p�D NH��P̉�d)ۃb�
/
aA� �a��H���@x�������#��`�����a�� ,}��z
,������[&�������z<OC��Q�Q�Ջ����q����y��qߣ=��T-���rh�X�U
�c
C���e!c�����3�0P�W�A��M�r��9�@yh��wl�1׻����ޭ⟠G��y�2㩇�S��cdC��W�BeKy��R
��+
ME�d��,I}��%�E��vZ+m��~����=�Q�x2,v�WB&�kO

U데�r�p�}f�󄶁M��g��f�8����38����F F����@ ��p�5�ChO��Wu���^�p|h�.��#����åg���2֞׸�7�=����x<�Y"�����I�}r��T��A^��S���1�b�df� �h (��GfĀN�%�$C����:W�f������x�،�����TA�3���c�x-lx�,�n>����պ͕��u������23- at Object.parseBody (/Users/wangbinxiang/nodejs/SaasSubAdminFrontEnd/node_modules/request-json/main.js:67:19) at Request._callback (/Users/wangbinxiang/nodejs/SaasSubAdminFrontEnd/node_modules/request-json/main.js:148:26) at Request.self.callback (/Users/wangbinxiang/nodejs/SaasSubAdminFrontEnd/node_modules/request-json/node_modules/request/request.js:187:22)

Can your support gzip?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions