Skip to content

Commit f2360f1

Browse files
Version Bump v3.0.1: Added default Accept header
1 parent 50064fe commit f2360f1

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [3.0.1] - 2016-06-28
5+
### Fixed
6+
- Accept header via [Get Satisfaction](https://community.sendgrid.com/sendgrid/topics/sendgrid-v3-webapi-issue-with-accept-header-response-406-not-acceptable)
7+
48
## [3.0.0] - 2016-06-13
59
### Added
610
- Breaking change to support the v3 Web API

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Add the following to your build.gradle file in the root of your project.
4747
...
4848
dependencies {
4949
...
50-
compile 'com.sendgrid:sendgrid-java:3.0.0'
50+
compile 'com.sendgrid:sendgrid-java:3.0.1'
5151
}
5252
5353
repositories {
@@ -72,7 +72,7 @@ mvn install
7272

7373
You can just drop the jar file in. It's a fat jar - it has all the dependencies built in.
7474

75-
[sendgrid-java.jar](http://repo1.maven.org/maven2/com/sendgrid/sendgrid-java/3.0.0/sendgrid-java-3.0.0-jar.jar)
75+
[sendgrid-java.jar](http://repo1.maven.org/maven2/com/sendgrid/sendgrid-java/3.0.1/sendgrid-java-3.0.1-jar.jar)
7676

7777
```java
7878
import com.sendgrid.*;

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ apply plugin: 'maven'
1717
apply plugin: 'signing'
1818

1919
group = 'com.sendgrid'
20-
version = '3.0.0'
20+
version = '3.0.1'
2121
ext.packaging = 'jar'
2222

2323
allprojects {

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<groupId>com.sendgrid</groupId>
1010
<artifactId>sendgrid-java</artifactId>
1111
<name>SendGrid Java helper library</name>
12-
<version>3.0.0</version>
12+
<version>3.0.1</version>
1313
<description>This Java module allows you to quickly and easily send emails through SendGrid using Java.</description>
1414
<url>https://github.com/sendgrid/sendgrid-java</url>
1515
<licenses>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public void initializeSendGrid(String apiKey) {
4545
this.requestHeaders = new HashMap<String, String>();
4646
this.requestHeaders.put("Authorization", "Bearer " + apiKey);
4747
this.requestHeaders.put("User-agent", USER_AGENT);
48+
this.requestHeaders.put("Accept", "application/json");
4849
}
4950

5051
public String getLibraryVersion() {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public Map<String,String> buildDefaultHeaders() {
2121
requestHeaders.put("Authorization", "Bearer " + SENDGRID_API_KEY);
2222
String USER_AGENT = "sendgrid/" + sg.getLibraryVersion() + ";java";
2323
requestHeaders.put("User-agent", USER_AGENT);
24+
requestHeaders.put("Accept", "application/json");
2425
return requestHeaders;
2526
}
2627

0 commit comments

Comments
 (0)