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.
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 Requiredwhen theContent-Length: 0header 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.