Skip to content

Commit 84c30a4

Browse files
committed
Fixed sendErrorCode(int)
1 parent f6b4b3a commit 84c30a4

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎impl-servlet/src/main/java/org/ocpsoft/rewrite/servlet/impl/HttpInboundRewriteImpl.java‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* Copyright 2011 <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
3-
*
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -141,8 +141,7 @@ public void sendErrorCode(final int code, final String message)
141141
{
142142
if (message == null)
143143
{
144-
response.setStatus(code);
145-
response.flushBuffer();
144+
response.sendError(code);
146145
}
147146
else
148147
{

‎integration-faces/src/main/java/org/ocpsoft/rewrite/faces/config/PhaseBinding.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class PhaseBinding extends HttpOperation implements Binding
4444

4545
private final Submission deferred;
4646
private Object deferredValue;
47-
private Operation operation = SendStatus.code(404);
47+
private Operation operation = SendStatus.error(404);
4848

4949
private PhaseBinding(Submission binding)
5050
{

0 commit comments

Comments
 (0)