Added function to format Record to array of tuples which is expected in HeadersInit and support duplicate headers.
The original test is indented, so it looks long. So, check it with hidden whitespaces.
Motivation and Context
TypeScript compiler was complaining about the shape of headersInit data.
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] I have updated the documentation accordingly. If you are changing code related to user secrets you need to really make sure that security documentation is correct.
Description
Added function to format Record to array of tuples which is expected in
HeadersInit
and support duplicate headers.The original test is indented, so it looks long. So, check it with hidden whitespaces.
Motivation and Context
TypeScript compiler was complaining about the shape of
headersInit
data.Types of changes
Checklist: