Skip to content

编码根据文件头来返回 #2

Description

@awaysoft

我看到你返回的数据编码根据的是发出请求的编码,而且只对gbk做了处理。

是否应该根据返回的Header来做优先编码处理?
然后,iconv-lite的编码确实少了点,依赖库改为iconv是不是会好点(虽然iconv不是纯js库)?

PS:_sendPostReq这个函数缩进有点点小问题,嘿嘿,还有就是_sendPostReq和_sendGetReq能否合并?感觉代码区别不大的说。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions