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: Added globalUser to OpenFoodAPIConfiguration #329

Merged
merged 3 commits into from Dec 19, 2021
Merged

Conversation

M123-dev
Copy link
Member

No description provided.

@@ -91,7 +91,7 @@ class HttpHelper {

request.headers.addAll(
_buildHeaders(
user: user,
user: OpenFoodAPIConfiguration.getUser(user),
Copy link
Contributor

Choose a reason for hiding this comment

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

You should simplify the code and call OpenFoodAPIConfiguration.getUser(user) only once: inside _buildHeaders. Does that make sense?

Copy link
Member Author

Choose a reason for hiding this comment

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

Me: Ignore the thing I am doing at the same time for the userAgent,

Fixed

@M123-dev M123-dev merged commit e246d9e into master Dec 19, 2021
@M123-dev M123-dev deleted the global-user branch December 19, 2021 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants