majkinetor / au

Chocolatey Automatic Package Updater Module
GNU General Public License v2.0
227 stars 71 forks source link

Add support for headers in Get-RemoteChecksum #165

Closed Jackenmen closed 6 years ago

Jackenmen commented 6 years ago

I think this may be useful for the same reasons as having it in au_GetLatest.

This -Headers parameter seems to be less restrictive and you only (theoritically) can't specify User-Agent and cookie headers. When I checked it though, I could specify User-Agent without any problems (not sure how to specify cookie headers), so I'm not sure, if it even restricts those headers.

I simply added new $Headers parameter to Get-RemoteChecksum, but I can change it to $Options and specify headers under it, if needed.