Skip to content

Chunked responses and secretResponses #83

Open
@ciricc

Description

@ciricc

We have the Transfer-Encoding header which value my be chunked. When it is, the response body devided by the chunks:

<chunk_size>
<chunk_content>
\r\n
<chunk_size>
<chunk_content>
\r\n....

When we have the chunked JSON, it may not find the substring in the response, because the chunk size devided the one of secretResponse. So, the secretResponse will no be hidden:

ff
{"hello": tr
\r\n
16
ue}
0

secretResponses = ["true"]

Will not hide the true, because we have only tr\r\n16ue.

Maybe the Accept-Encoding: identity by default in the all requests will do the trick. But i am not sure bout that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions