esa-httpserver
esa-httpserver copied to clipboard
Failed to get response of head request
Expected behavior
When I send a head request in postman, there is a Parse Error: The server returned a malformed response occurred.
Actual behavior
I expect the response of get which has no entity content.
Steps to reproduce
Define a controller that looks like this:
@Controller
@RequestMapping("/")
public class SimplePlainController {
@RequestMapping("/12345")
@ResponseBody
public String list() {
return "Hello";
}
}
and then send a simple head request as: http://127.0.0.1:9997/12345.
Env
- HttpServer version: V0.1.0
- JVM version: openjdk version "11.0.11"
- OS: Win10