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: include agent info into polling #29

Merged
merged 7 commits into from
Nov 26, 2024

Conversation

levinkerschberger
Copy link
Member

No description provided.

@binarycoded binarycoded requested a review from EddeCCC November 18, 2024 12:05
Copy link
Member

@EddeCCC EddeCCC left a comment

Choose a reason for hiding this comment

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

Additionally, you can also remove

  • the class NotificationCallback
  • the method createStartNotification() in NotificationFactory

@EddeCCC EddeCCC marked this pull request as ready for review November 18, 2024 13:10
Copy link

@binarycoded binarycoded requested a review from EddeCCC November 19, 2024 09:21

headers.forEach(requestBuilder::addHeader);
agent
.getAttributes()
.forEach((key, value) -> requestBuilder.addHeader("X-Gepard-Attribute-" + key, value));
.forEach((key, value) -> requestBuilder.addHeader(X_GEPARD_ATTRIBUTE + key, value));
Copy link
Member Author

Choose a reason for hiding this comment

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

Hi @EddeCCC, @binarycoded,
Quick note: I changed the headers to lower-case, since the apache http client automatically lowercases them, when sending.
According to the http-specs, header names are case-insensitive (https://stackoverflow.com/questions/5258977/are-http-headers-case-sensitive). That might be the reason.
Long Story Short: On the the other side (config-server) you still need to check for lower-cased headers.
Was pretty painful to find that out while debugging.

@binarycoded binarycoded merged commit 6be3dd2 into master Nov 26, 2024
8 checks passed
@binarycoded binarycoded deleted the feature/579-include-info-in-polling branch November 26, 2024 09:14
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.

3 participants