Support headers when downloading appcast
I just migrated fom Winsparkle because I needed fine grained control over download and it worked like a charm. However I noticed a little feature which helped me to figure out users how many users didn't upgrade yet. WinSparke used to set the user agent with the app name and version for the appcast get request. Would you mind adding a property to set the headers to pass to the inner HttpClient so achieve the same feature?
Hi @emazv72, glad the lib is helpful to you.
You can achieve what you'd like to do by subclassing WebFileDownloader and overriding the method protected virtual HttpClient CreateHttpClient(HttpClientHandler? handler) to return an HttpClient with whatever headers and other information you would like to send. You can do the same with the WebRequestAppCastDataDownloader class.
Hi @Deadpikle, thank you for your helpful lib, appreciate your suggestion. I just thought it would be nice to have a simple pass through feature without having to deal with the lib inner machinery.