-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
az storage blog sync sets content-type on .js files to text/plain #10302
Comments
Actual command run by the Azure DevOps task: |
@vidarkongsli Have you specify content-type when using AzCopy? If you just using |
The Azure File Copy DevOps Task runs the following, which works as far as content-type is concerned: So yes, the switch |
It is blocked by azcopy issue. |
@vidarkongsli we will add content-type flag for azure cli command later, but need some support from azcopy team. |
Is any progress? |
I just encountered the issue too while using the AzureFileCopy task. a workaround is to have the following script: - script: reg add HKCR\.js /v "Content Type" /d application/javascript /f
displayName: Add .js content type to registry |
|
Hi @Juliehzl, we will target 10.5 for this fix. Thanks for the reminder! |
@zezha-msft was this issue resolved? |
please try in next release. |
Bug description
When using
az storage blob sync
to synchronize files to an Azure storage blob container,.js
files get content-typetext/plain
.Expected behavior
Content type should be
application/javascript
.Environment summary
Additional context
Using Azure DevOps task 'AzCopy' instead yields the correct content type.
The text was updated successfully, but these errors were encountered: