Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinstate user-agent header to ADDS requests #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

corys
Copy link

@corys corys commented Nov 23, 2020

Last Thursday, our requests to ADDS using this package started getting a 403 Forbidden response. Curiously, our requests that did not use this package (and still used superagent 3.8 were still working. The only different we could see between the requests was this package was not sending a user-agent header, while the old version of superagent was.

Sure enough, superagent 5.1 removed the user-agent header.

This PR adds a user-agent header to the requests, which appears to fix the problem. We are still unclear on exactly what or why changes were made by ADDS to require the user-agent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants