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

Detect and generate correct content-type headers for input files #2476

Closed
timayabi2020 opened this issue Dec 5, 2023 · 1 comment
Closed

Comments

@timayabi2020
Copy link
Contributor

timayabi2020 commented Dec 5, 2023

Currently for cmdlets that upload files, the media content-type headerhas been set to null for all file types. Therefore the API treats such requests as an application/octet-stream.
image

There needs to be a feature that will automatically detect the file type and append the correct content-type header to the request.

Related issue is here on autorest Azure/autorest.powershell#1286

@timayabi2020 timayabi2020 changed the title Detect and generate correct content-type headers for input files instead of defaulting to application/octet-stream Detect and generate correct content-type headers for input files Dec 5, 2023
@timayabi2020 timayabi2020 self-assigned this Jan 23, 2024
@timayabi2020
Copy link
Contributor Author

Closing this as it was fixed in #2570

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant