Skip to content

Twisted web client doesn't support trailer Server-Timing #11997

@taroved

Description

@taroved

Describe the incorrect behavior you saw
Twisted web client doesn't support trailer Server-Timing.
Example: https://w3c.github.io/server-timing/#the-server-timing-header-field

Describe how to cause this behavior
Use console program (simple http client) from this gist: https://gist.github.com/taroved/06922ceeb872094304cc889dacae099f

Always you run the code:

python httpclient.py https://www.esquire.com/

You see such exception:

Traceback (most recent call last):
Failure: twisted.web._newclient.ResponseFailed: [<twisted.python.failure.Failure twisted.web.http._MalformedChunkedDataError: Chunk did not end with CRLF>, <twisted.python.failure.Failure twisted.web.http._DataLoss: Chunked decoder in 'TRAILER' state, still expecting more data to get to 'FINISHED' state.>]

Describe the correct behavior you'd like to see
Such pages as https://www.esquire.com/ should be downloaded without exceptions.

Testing environment

  • Linux 939ff8bae3fe 5.15.49-linuxkit-pr
  • Twisted version: 23.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions