INNER CODE UNIT · Python

pos

ministackorg/ministack · ministack/app.py:576

        pos = data_start + chunk_size + 2  # skip trailing \r\n
    decoded = b"".join(chunks)

    # A checksum computed while the body streamed arrives here rather than
    # among the request headers, and the rest of the request has no way to
    # tell the two apart -- so lift it into the headers, where every
    # checksum reader already looks.  An explicit header wins: the trailer
    # is the late copy of the same field, not an override.
    for line in trailer.split(b"\r\n"):
        name, sep, value = line.partition(b":")
        if not sep:
            continue
        name = name.decode("ascii", errors="replace").strip().lower()
        if name:
            headers.setdefault(
                name, value.decode("utf-8", errors="replace").strip())

    body = decoded

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…