Skip to content

Refactor code to centralise default headers in fetch.js #619

@yashkohli88

Description

@yashkohli88

Description:
The current codebase contains various usage of user-agent headers in multiple fetch functions for different package managers.

To address this issue, we propose refactoring the code to centralise the declaration of user-agent headers in a single fetch.js file. This will not only make the code more maintainable and easier to update, but also improve consistency across the project.

Additionally, we need to add tests to ensure that the code changes do not introduce any regressions and that the user-agent headers are being correctly applied in all fetch requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions