Response is committing and doFilter chain is broken

前端 未结 2 1179
孤街浪徒
孤街浪徒 2020-12-10 21:31

In order this is what I need to happen:

Request on blah.com/test

  1. ServletFilter A - creates profile, then calls chain.doFilter
2条回答
  •  囚心锁ツ
    2020-12-10 22:00

    It works fine. Anyway it's important to note that, just in case the buffered response size is smaller than 8KB, it won't work unless you flush the response before u call getWrapperBytes().

    This is due to servlet-api internal implementation.

提交回复
热议问题