Skip to content

Commit

Permalink
Fix head response with headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghaolu committed Mar 29, 2016
1 parent 7a39169 commit 49a0c03
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ public <THeader> ServiceResponseWithHeaders<T, THeader> buildEmptyWithHeaders(Re
THeader headers = mapperAdapter.deserialize(
mapperAdapter.serialize(response.headers()),
headerType);
return new ServiceResponseWithHeaders<>(headers, bodyResponse.getHeadResponse());
ServiceResponseWithHeaders<T, THeader> serviceResponse = new ServiceResponseWithHeaders<>(headers, bodyResponse.getHeadResponse());
serviceResponse.setBody(bodyResponse.getBody());
return serviceResponse;
}

/**
Expand Down

0 comments on commit 49a0c03

Please sign in to comment.