Added support within the Invoke-RubrikWebRequest cmdlet to support adding the required ContentType parameter when issuing DELETE requests when using PowerShell 7 and above.
Added cmdlet Test-PowerShellSeven to check powershell version.
Related Issue
Resolves #853
Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:
[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:
Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
Added support within the Invoke-RubrikWebRequest cmdlet to support adding the required ContentType parameter when issuing DELETE requests when using PowerShell 7 and above. Added cmdlet Test-PowerShellSeven to check powershell version.
Related Issue
Resolves #853
Types of changes
What types of changes does your code introduce? Put an
x
in all the boxes that apply:Checklist:
Go over all the following points, and put an
x
in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!