Skip to content

Commit e646c05

Browse files
Merge branch 'main' into curquiza-patch-2
2 parents 719f2b1 + c69b8ba commit e646c05

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Add the following code to the `<dependencies>` section of your project:
5858
<dependency>
5959
<groupId>com.meilisearch.sdk</groupId>
6060
<artifactId>meilisearch-java</artifactId>
61-
<version>0.14.3</version>
61+
<version>0.14.4</version>
6262
<type>pom</type>
6363
</dependency>
6464
```
@@ -68,7 +68,7 @@ Add the following code to the `<dependencies>` section of your project:
6868
Add the following line to the `dependencies` section of your `build.gradle`:
6969

7070
```groovy
71-
implementation 'com.meilisearch.sdk:meilisearch-java:0.14.3'
71+
implementation 'com.meilisearch.sdk:meilisearch-java:0.14.4'
7272
```
7373

7474
:warning: `meilisearch-java` also requires `okhttp` as a peer dependency.

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ plugins {
1818

1919
group = 'com.meilisearch.sdk'
2020
archivesBaseName = 'meilisearch-java'
21-
version = '0.14.3'
21+
version = '0.14.4'
2222

2323
java {
2424
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -63,10 +63,10 @@ dependencies {
6363
testImplementation 'org.hamcrest:hamcrest:3.0'
6464
testImplementation 'com.squareup.okio:okio:3.10.2'
6565
testImplementation 'com.squareup.okhttp3:okhttp:4.12.0'
66-
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
66+
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.18.3'
6767

6868
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
69-
compileOnly group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.18.2'
69+
compileOnly group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.18.3'
7070

7171
// Lombok
7272
compileOnly 'org.projectlombok:lombok:1.18.38'

src/main/java/com/meilisearch/sdk/Version.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.meilisearch.sdk;
22

33
public class Version {
4-
static final String VERSION = "0.14.3";
4+
static final String VERSION = "0.14.4";
55

66
public static String getQualifiedVersion() {
77
return "Meilisearch Java (v" + VERSION + ")";

src/main/java/com/meilisearch/sdk/http/CustomOkHttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private Request buildRequest(HttpRequest request) throws MalformedURLException {
5656
Request.Builder builder = new Request.Builder();
5757
builder.url(url);
5858

59-
if (this.config.getApiKey() != null)
59+
if (this.config.getApiKey() != null && !this.config.getApiKey().isEmpty())
6060
builder.addHeader("Authorization", this.config.getBearerApiKey());
6161

6262
for (Map.Entry<String, String> entry : request.getHeaders().entrySet()) {

0 commit comments

Comments
 (0)