Skip to content

Terminating chunk not sent? #4

Description

@chifflier

Hi,

Maybe I am not using this correctly, but it seems the encoding of requests is not correct: the terminating chunk (size 0) is not sent.

The client code is the one from the example:

conn = icapclient.ICAPConnection('127.0.0.1')
conn.request('REQMOD', 'eicar.com.txt', service="avscan")
resp = conn.getresponse()

My server rejects the request (REQMOD), because it does not receive the 0\r\n that is expected.

Capturing the traffic confirms this (edited to show only the end of the request):

Transfer-Encoding: chunked

44
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

(not the absence of '0\r\n').

If the server tries to read again, nothing is sent.

Am I missing something?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions