Skip to content

headers don't get written if no content or status is written #38

Open
@UnquietCode

Description

@UnquietCode

The golang http server will write out on close, just in case nothing was written. Could the End() method be changed to call Write([]byte{}) so that it will trigger the headers and status OK being written?

This is using v2.0.0 of the library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions