Skip to content

Commit

Permalink
Merge pull request #127 from treasure-data/fix-response-header
Browse files Browse the repository at this point in the history
Fix issue response header Marketo change from text/csv to text/csv;charset=UTF-8
  • Loading branch information
vietnguyen-td committed Jun 13, 2024
2 parents e3283d1 + 521dcd9 commit 51fbb8e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.6.27
- Fix issue response header Marketo change from text/csv to text/csv;charset=UTF-8

## 0.6.26
- Catch up to Java 11

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repositories {

group = "com.treasuredata.embulk.plugins"
description = "Loads records from Marketo."
version = "0.6.26"
version = "0.6.27"

sourceCompatibility = 1.8
targetCompatibility = 1.8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public Response getResponse() throws Exception
@Override
public InputStream readResponseContent() throws Exception
{
if (!getResponse().getHeaders().getField(HttpHeader.CONTENT_TYPE).getValue().equals("text/csv")) {
if (!getResponse().getHeaders().getField(HttpHeader.CONTENT_TYPE).getValue().contains("text/csv")) {
String errorString = readResponseContentInString();

MarketoResponse<ObjectNode> errorResponse = OBJECT_READER.readValue(errorString);
Expand Down

0 comments on commit 51fbb8e

Please sign in to comment.