Skip to content

Commit cb1dbbc

Browse files
committed
bump vsn 2.2.0
1 parent 3972939 commit cb1dbbc

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.2.0
2+
3+
- Added `isEU`, `CountryFlag`, `CountryCurrency` and `Continent` fields.
4+
- Checking bogon IP locally.
5+
- Upgraded `okhttp` to `4.10.0`.
6+
17
# 2.1.0
28

39
- Added `Relay` and `Service` fields to `io.ipinfo.api.model.Privacy`.

src/main/java/io/ipinfo/api/IPinfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ private ConcurrentHashMap<String, Object> getBatchGeneric(
256256
.url(postUrl)
257257
.addHeader("Content-Type", "application/json")
258258
.addHeader("Authorization", Credentials.basic(token, ""))
259-
.addHeader("User-Agent", "IPinfoClient/Java/2.1.1");
259+
.addHeader("User-Agent", "IPinfoClient/Java/2.2");
260260

261261
for (int i = 0; i < lookupUrls.size(); i += batchSize) {
262262
// create chunk.

src/main/java/io/ipinfo/api/request/BaseRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ protected BaseRequest(OkHttpClient client, String token) {
2323
public Response handleRequest(Request.Builder request) throws RateLimitedException {
2424
request
2525
.addHeader("Authorization", Credentials.basic(token, ""))
26-
.addHeader("user-agent", "IPinfoClient/Java/2.1.1")
26+
.addHeader("user-agent", "IPinfoClient/Java/2.2")
2727
.addHeader("Content-Type", "application/json");
2828

2929
Response response;

0 commit comments

Comments
 (0)