Skip to content

Commit

Permalink
Merge pull request Azure#141 from jianghaolu/headfix
Browse files Browse the repository at this point in the history
Fix HEAD response in azure builder
  • Loading branch information
jianghaolu authored Feb 10, 2017
2 parents 8301c22 + ab07616 commit 1e3a2de
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ public <THeader> ServiceResponseWithHeaders<T, THeader> buildWithHeaders(Respons

@Override
public <THeader> ServiceResponseWithHeaders<T, THeader> buildEmptyWithHeaders(Response<Void> response, Class<THeader> headerType) throws IOException {
return baseBuilder.buildEmptyWithHeaders(response, headerType);
ServiceResponse<T> bodyResponse = buildEmpty(response);
ServiceResponseWithHeaders<T, THeader> baseResponse = baseBuilder.buildEmptyWithHeaders(response, headerType);
ServiceResponseWithHeaders<T, THeader> serviceResponse = new ServiceResponseWithHeaders<>(baseResponse.headers(), bodyResponse.headResponse());
serviceResponse.withBody(bodyResponse.body());
return serviceResponse;
}

/**
Expand Down

0 comments on commit 1e3a2de

Please sign in to comment.