-
Notifications
You must be signed in to change notification settings - Fork 330
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
Ignore invalid range in blob download #2462
Conversation
@microsoft-github-policy-service agree company="corpuls" |
Do you have any idea how to input a invalid range header like "0--1" in download blob API by JS SDK (in Azurite test)? |
Following is sample to set a customized header to a blobClient instance:
|
@cnaj |
I'm still trying to figure out how to apply @EmmaZhu's suggestion. For instance, there is no |
@EmmaZhu is there any way to unblock this PR? I have a duplicate one open. |
This is a sample azurite test case which use "addpolicy" to add a customized policy to change to request send from storage js SDK.
The customized policy class is defined in https://github.com/Azure/Azurite/blob/main/tests/blob/RequestPolicy/OPTIONSRequestPolicyFactory.ts |
# Conflicts: # ChangeLog.md
Thank you @blueww, this hint pointed me into the right direction. I've added an additional test as a sanity check for the new |
Thanks @cnaj! |
Fix #2458, based on #2461
I'm not sure how to provoke an invalid range header in the unit tests; @blueww can you give me a hint?