Skip to content

Commit

Permalink
Preserve response status code when translating from internal to servl…
Browse files Browse the repository at this point in the history
…et API
  • Loading branch information
jleyba committed May 26, 2014
1 parent 88f6680 commit ad2a6bb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ private static HttpRequest createInternalRequest(HttpServletRequest servletReque

private void sendResponse(HttpResponse response, HttpServletResponse servletResponse)
throws IOException {
servletResponse.setStatus(response.getStatus());
for (String name : response.getHeaderNames()) {
for (String value : response.getHeaders(name)) {
servletResponse.addHeader(name, value);
Expand Down

0 comments on commit ad2a6bb

Please sign in to comment.