Skip to content

moved the part where the user agent is set to constructRequest function#2

Open
imolein wants to merge 1 commit intomatterbridge:workfrom
imolein:user-agent-p1
Open

moved the part where the user agent is set to constructRequest function#2
imolein wants to merge 1 commit intomatterbridge:workfrom
imolein:user-agent-p1

Conversation

@imolein
Copy link
Copy Markdown

@imolein imolein commented Jul 25, 2022

I'm not a Go programmer and I don't have the environment to test this, but from my understanding of the code and the fact that I see on my zulip server that matterbridge is only setting the user-agent on subscription requests, I moved the user-agent part into the constructRequest function. Then the user-agent should be correctly set on every request to zulip.

I hope my assumption is correct :)

@imolein imolein changed the title moved the part where the user agent is set in constructRequest function moved the part where the user agent is set to constructRequest function Jul 25, 2022
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.

1 participant