Skip to content

Failed to get response of head request #18

@Mkabaka

Description

@Mkabaka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions