Skip to content

[Urgent] HTTP connection hangs when using HEAD method #608

Closed
@mtojek

Description

@mtojek

Description

The connection stays open because of missing response data (basically hangs).

curl -X HEAD http://localhost:1323

Working code to debug

package main

import (
    "net/http"
    "github.com/labstack/echo"
    "github.com/labstack/echo/engine/standard"
)

func main() {
    e := echo.New()
    e.GET("/", func(c echo.Context) error {
        return c.String(http.StatusOK, "Hello, World!")
    })
    e.Run(standard.New(":1323"))
}

Version/commit

latest

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions