1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 Requests v2.11.0 发布,Python 的 HTTP 客户端库 下载

本帖由 漂亮的石头2016-08-09 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    487,974
    赞:
    47
    Requests v2.11.0 发布了,Requests 是一个 Python 的 HTTP 客户端库。

    一些提升:


    • Added support for the ALL_PROXY environment variable.


    • Reject header values that contain leading whitespace or newline characters to reduce risk of header smuggling.

    Bug 修复:


    • Fixed occasional TypeError when attempting to decode a JSON response that occurred in an error case. Now correctly returns a ValueError.


    • Requests would incorrectly ignore a non-CIDR IP address in the NO_PROXYenvironment variables: Requests now treats it as a specific IP.


    • Fixed a bug when sending JSON data that could cause us to encounter obscure OpenSSL errors in certain network conditions (yes, really).


    • Added type checks to ensure that iter_content only accepts integers andNone for chunk sizes.


    • Fixed issue where responses whose body had not been fully consumed would have the underlying connection closed but not returned to the connection pool, which could cause Requests to hang in situations where the HTTPAdapterhad been configured to use a blocking connection pool.

    其他改进:


    • Updated bundled urllib3 to 1.16.


    • Some previous releases accidentally accepted integers as acceptable header values. This release does not.

    下载地址:

    Requests v2.11.0 发布,Python 的 HTTP 客户端库下载地址
     
正在加载...