avoid deprecated method
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@572 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
c6a5ddd20e
commit
70c1eee2ce
|
@ -308,7 +308,7 @@ public class DoSFilter implements Filter
|
|||
// insert a delay before throttling the request
|
||||
if (_insertHeaders)
|
||||
((HttpServletResponse)response).addHeader("DoSFilter","delayed");
|
||||
Continuation continuation = ContinuationSupport.getContinuation(request,response);
|
||||
Continuation continuation = ContinuationSupport.getContinuation(request);
|
||||
request.setAttribute(__TRACKER,tracker);
|
||||
if (_delayMs > 0)
|
||||
continuation.setTimeout(_delayMs);
|
||||
|
|
Loading…
Reference in New Issue