How to drop body of a request after checking headers in Servlet

后端 未结 2 1358
半阙折子戏
半阙折子戏 2021-01-21 22:15

I want to check the header of the request whether it contains a certain header or not before continuing with the body. For example, I want to check whether a multipart/form-data

2条回答
  •  抹茶落季
    2021-01-21 22:52

    That's the limitation of HTTP. You can't send a response when the request hasn't been read fully to end.

提交回复
热议问题