Skip to content

Content-Length validation #2618

@carl-sauter

Description

@carl-sauter

Hello there, I noticed that a Content-Length header is required for creating a container. This validation is not included in azurite and will only happen on a "real" blob storage.

This is the api I am talking about:
https://learn.microsoft.com/en-us/rest/api/storageservices/create-container?tabs=microsoft-entra-id

Although the request has no body, a real blobstorage returns 411 Length Required when the Content-Length: 0 header is not present. Azurite is fine without the header.

Maybe consider adding this validation also to azurite to keep it at close as possible to a real storage.

Metadata

Metadata

Assignees

Labels

alignmentAlignment between Azurite with Azure Storage productionblob-storage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions