Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: missing content-type header #2

Merged
merged 1 commit into from
May 29, 2024

Conversation

tjgruber
Copy link
Owner

Add Content-Type Header to Azure Storage Blob Upload Finalization

Summary

This pull request introduces an improvement to the Invoke-AzureStorageBlobUploadFinalize function. The main change is the addition of a content-type header to the REST request to ensure the correct handling of the request body during the finalization of the upload of chunks of the .intunewin file into the Azure Storage blob container.

Changes

Invoke-AzureStorageBlobUploadFinalize

  • Header Addition: Added a content-type header to the REST request with the value text/plain; charset=UTF-8. This ensures that the request body is correctly processed by the Azure Storage service.
  • Improved Error Handling: Enhanced error messages to provide more informative feedback if the upload finalization fails.

Testing

  • Verified that the function successfully finalizes the upload of chunks to the Azure Storage blob container with the correct content-type header.

Notes

This improvement ensures better compatibility and reliability when interacting with the Azure Storage service, particularly for the finalization step of uploading .intunewin files.

Contributors

Please review the changes and provide feedback. Thank you!

@tjgruber tjgruber merged commit 59f3f55 into master May 29, 2024
@tjgruber tjgruber deleted the fix-missing-content-type-header branch June 1, 2024 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant