Unverified Commit 1e393a05 authored by Nicola Soranzo's avatar Nicola Soranzo Committed by GitHub
Browse files

Merge pull request #10609 from mvdbeek/response_body_fix

[20.01] Change response body from str to bytes
parents 06ef6b3e 33df9c17
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -498,10 +498,10 @@ def send_file(start_response, trans, body):
    if base:
        trans.response.headers['X-Accel-Redirect'] = \
            base + os.path.abspath(body.name)
        body = [""]
        body = [b""]
    elif apache_xsendfile:
        trans.response.headers['X-Sendfile'] = os.path.abspath(body.name)
        body = [""]
        body = [b""]
    # Fall back on sending the file in chunks
    else:
        body = iterate_file(body)