Skip to content

Commit

Permalink
Update tools/test-generator/src/main/java/org/citrusframework/generat…
Browse files Browse the repository at this point in the history
…e/provider/http/SendHttpResponseActionProvider.java

Co-authored-by: Timon Borter <[email protected]>
  • Loading branch information
Tom-29 and bbortt authored Sep 15, 2023
1 parent ec19162 commit 93a3f74
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ public SendResponseModel getAction(String endpoint, HttpMessage message) {
if (message.getStatusCode() instanceof HttpStatus) {
responseHeaders.setStatus(((HttpStatus) message.getStatusCode()).toString());
responseHeaders.setReasonPhrase(((HttpStatus) message.getStatusCode()).getReasonPhrase());
}
else {
} else {
responseHeaders.setStatus("Status" + message.getStatusCode().value());
responseHeaders.setReasonPhrase("Custom Status Code " + message.getStatusCode().value());
}
Expand Down

0 comments on commit 93a3f74

Please sign in to comment.