Comment 14 for bug 1616105

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystoneauth (master)

Reviewed: https://review.openstack.org/416249
Committed: https://git.openstack.org/cgit/openstack/keystoneauth/commit/?id=f345559a06c0128dcb7fede4b593487540da86ef
Submitter: Jenkins
Branch: master

commit f345559a06c0128dcb7fede4b593487540da86ef
Author: Samuel de Medeiros Queiroz <email address hidden>
Date: Tue Jan 3 11:04:59 2017 -0300

    Prevent MemoryError when logging response bodies

    Response bodies are loaded into memory prior to
    being logged.

    Loading huge response bodies may result in a
    MemoryError.

    This patch proposes that only JSON and TEXT
    responses be logged, i.e when the Content-Type
    header is application/json or application/text.

    Responses that do not include or have a different
    Content-Type header will have their body omitted.

    Closes-bug: 1616105

    Change-Id: I93b6fff73368c4f58bdebf8566c4948b50980cee