Skip to content

Commit 334c083

Browse files
Updated dependency and Content-Type is now auto-set
1 parent 025f4f0 commit 334c083

4 files changed

Lines changed: 2 additions & 4 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ buildscript {
4545
}
4646

4747
dependencies {
48-
compile 'com.sendgrid:java-http-client:2.2.1'
48+
compile 'com.sendgrid:java-http-client:2.3.1'
4949
compile 'com.fasterxml.jackson.core:jackson-core:2.5.3'
5050
compile 'com.fasterxml.jackson.core:jackson-annotations:2.5.3'
5151
compile 'com.fasterxml.jackson.core:jackson-databind:2.5.3'

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
<dependency>
9090
<groupId>com.sendgrid</groupId>
9191
<artifactId>java-http-client</artifactId>
92-
<version>2.2.1</version>
92+
<version>2.3.1</version>
9393
</dependency>
9494
<dependency>
9595
<groupId>com.fasterxml.jackson.core</groupId>

src/main/java/com/sendgrid/SendGrid.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public void initializeSendGrid(String apiKey) {
4444
this.version = "v3";
4545
this.requestHeaders = new HashMap<String, String>();
4646
this.requestHeaders.put("Authorization", "Bearer " + apiKey);
47-
this.requestHeaders.put("Content-Type", "application/json");
4847
this.requestHeaders.put("User-agent", USER_AGENT);
4948
}
5049

src/test/java/com/sendgrid/SendGridTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public Map<String,String> buildDefaultHeaders() {
1919
SendGrid sg = new SendGrid(SENDGRID_API_KEY);
2020
Map<String,String> requestHeaders = new HashMap<String, String>();
2121
requestHeaders.put("Authorization", "Bearer " + SENDGRID_API_KEY);
22-
requestHeaders.put("Content-Type", "application/json");
2322
String USER_AGENT = "sendgrid/" + sg.getLibraryVersion() + ";java";
2423
requestHeaders.put("User-agent", USER_AGENT);
2524
return requestHeaders;

0 commit comments

Comments
 (0)