PDF won't download or load on homedepot.ca #7543
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Task/Issue URL: https://app.asana.com/1/137249556945/project/488551667048375/task/1211134676219652?focus=true
Description
Added User-Agent header to file downloads to ensure proper handling by servers. This PR:
userAgentparameter to thePendingFileDownloadclassSteps to test this PR
File Downloads
NO UI changes
Note
Ensures servers receive a proper
User-Agentduring downloads and adds a resilient fallback when HTTP/2 breaks.userAgenttoPendingFileDownloadand threads it through workers (FileDownloadWorker), receivers, and callers (BrowserTabFragment, DuckChat, Subscriptions)DownloadFileServiceto sendUser-Agentfor bothHEADand streamingGETApiRequestInterceptorto skip addingUser-Agentif already present and to use WebView UA for re-query pixels@Named("downloadsHttp1")) and DI wiring; provides@Named("http1Fallback")DownloadFileServiceUrlFileDownloaderto include UA, handleStreamResetException, and retry via HTTP/1.1 client; cleans up on cancel/failureWritten by Cursor Bugbot for commit f4cba05. This will update automatically on new commits. Configure here.