Commit 33df9c17 authored by Qiang Gu's avatar Qiang Gu Committed by mvdbeek
Browse files

Change response body from str to bytes

parent 06ef6b3e
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)