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

feat: add user_agent in default request options as well #2837

Closed
wants to merge 2 commits into from

Conversation

pavanjoshi914
Copy link
Contributor

Describe the changes you have made in this PR

add user agent in default request options. we added user agent in auth headers but not in default request options, pr addresses the same

Type of change

(Remove other not matching type)

  • feat: New feature (non-breaking change which adds functionality)

Checklist

  • Self-review of changed code
  • Manual testing
  • Added automated tests where applicable
  • Update Docs & Guides
  • For UI-related changes
  • Darkmode
  • Responsive layout

@@ -89,7 +89,7 @@ export default class Alby implements Connector {

async getInvoices(): Promise<GetInvoicesResponse> {
const incomingInvoices = (await this._request((client) =>
client.incomingInvoices({})
client.incomingInvoices({}, this._getRequestOptions())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pavanjoshi914 can you check if we can pass these options to the client so they don't need to be provided in every single request? best to keep it DRY

@pavanjoshi914
Copy link
Contributor Author

closing this in favor of #2843

@pavanjoshi914 pavanjoshi914 deleted the feat/request-header branch November 6, 2023 10:18
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