Skip to content

Commit

Permalink
v3.0.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ipinfo committed Feb 26, 2025
1 parent 7e4480f commit 993fcf2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 3.0.2

- `IPResponse`: `GetAnycast` returns whether an IP is anycast, independent of underlying response field (`anycast` or `is_anycast`)

# 3.0.1

- `IPResponse`: reflect `anycast` response field being renamed to `is_anycast`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Dependency:
<dependency>
<groupId>io.ipinfo</groupId>
<artifactId>ipinfo-api</artifactId>
<version>3.0.1</version>
<version>3.0.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>io.ipinfo</groupId>
<artifactId>ipinfo-api</artifactId>
<version>3.0.1</version>
<version>3.0.2</version>
<packaging>jar</packaging>

<organization>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/ipinfo/api/IPinfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ private ConcurrentHashMap<String, Object> getBatchGeneric(
.url(postUrl)
.addHeader("Content-Type", "application/json")
.addHeader("Authorization", Credentials.basic(token, ""))
.addHeader("User-Agent", "IPinfoClient/Java/3.0.1");
.addHeader("User-Agent", "IPinfoClient/Java/3.0.2");

for (int i = 0; i < lookupUrls.size(); i += batchSize) {
// create chunk.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/ipinfo/api/request/BaseRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected BaseRequest(OkHttpClient client, String token) {
public Response handleRequest(Request.Builder request) throws RateLimitedException {
request
.addHeader("Authorization", Credentials.basic(token, ""))
.addHeader("user-agent", "IPinfoClient/Java/3.0.1")
.addHeader("user-agent", "IPinfoClient/Java/3.0.2")
.addHeader("Content-Type", "application/json");

Response response;
Expand Down

0 comments on commit 993fcf2

Please sign in to comment.