Skip to content

Conversation

@phraktle
Copy link
Contributor

This avoids mutating the JSON tree objects. See also maxmind/MaxMind-DB-Reader-java#13

This avoids mutating the JSON tree objects.
Made it consistent with the behavior of DatabaseReader, which also
injects the ip address / traits.
Copy link
Member

Choose a reason for hiding this comment

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

The web service will always return an IP address on a successful request. We should just use that value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If there's a value in the response JSON, it will override the injection.

oschwald added a commit that referenced this pull request Jan 12, 2016
Inject IP address via Jackson
@oschwald oschwald merged commit 4f47e0c into maxmind:master Jan 12, 2016
@oschwald
Copy link
Member

Thanks yet again!

@phraktle phraktle deleted the inject-ip branch January 12, 2016 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants