Skip to content

LogMode.LogRequest output is not accurate when using CrtHttpEngine #1408

@lauzadis

Description

@lauzadis

Describe the bug

When using the CrtHttpEngine with logMode = LogMode.LogRequest enabled, the request is logged before being transformed to a CRT request in toCrtRequest. For the most part, this function copies everything from the input request, but it makes some edits to the body and Content-Length header which are critical for proper debugging.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected behavior

The transformed request is logged

Current behavior

The request is logged before transformation

Steps to Reproduce

Make a request using the CrtHttpEngine

Possible Solution

No response

Context

No response

Smithy-Kotlin version

1.5.8

Platform (JVM/JS/Native)

All

Operating system and version

All

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions