Skip to content

S3.head_object uses deprecated HEAD request form #581

@IanButterworth

Description

@IanButterworth

It was a bit of a pain to track this down because the depwarning doesn't give a correct location

┌ Warning: Using "HEAD" in AWS requests to return headers is deprecated, use `@service S3 use_response_type=true` to return an `AWS.Response` allowing for header access via `response.headers`.
│   caller = ip:0x0
└ @ Core :-1

But it turns out that S3.head_object uses a deprecated request form

"HEAD", "/$(Bucket)/$(Key)"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET

So the user can hit this without doing anything wrong AFAICT

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