Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to get response of head request #18

Open
Mkabaka opened this issue Aug 6, 2021 · 0 comments
Open

Failed to get response of head request #18

Mkabaka opened this issue Aug 6, 2021 · 0 comments

Comments

@Mkabaka
Copy link
Member

Mkabaka commented Aug 6, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant