Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Failed to get response of head request #18

Open

Description

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

        AltStyle によって変換されたページ (->オリジナル) /