Skip to content

mitm-cache record doesn't log HEAD requests #3

@lispwitch

Description

@lispwitch

mitm-cache record doesn't log HEAD requests in its JSON output. This means that successful HEAD requests at record time become 404 errors at replay time. This can break mitm-cache-backed builds for some Gradle projects like spock. Gradle sometimes makes a HEAD request and decides not to download a file. If the URL is missing from the cache during a subsequent replay, Gradle treats a 404 response to its HEAD request as an error.

When mitm-cache encounters a HEAD request while recording, it'd be useful if it could make the corresponding GET request to ensure that the download is logged.

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