Skip to content

Commit

Permalink
PR #12643 - move validation to core response
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <[email protected]>
  • Loading branch information
lachlan-roberts committed Dec 16, 2024
1 parent 57eb041 commit 92d5b92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1190,6 +1190,8 @@ public int getStatus()
@Override
public void setStatus(int code)
{
if (code < 100 || code > 999)
throw new IllegalArgumentException();
if (!isCommitted())
_status = code;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,6 @@ public void addIntHeader(String name, int value)
@Override
public void setStatus(int sc)
{
if (sc < 100 || sc > 999)
throw new IllegalArgumentException();
getResponse().setStatus(sc);
}

Expand Down

0 comments on commit 92d5b92

Please sign in to comment.