Thanks to visit codestin.com
Credit goes to github.com

Skip to content

content-type header set but no body #114

@andreineculau

Description

@andreineculau

Has anyone looked into decision F6 ?
https://github.com/basho/webmachine/blob/master/src/webmachine_decision_core.erl#L279

Why set a content-type header when the response can easily be 204 No Content or 303 See Other or 201 Created, etc?
To take it further, why require content_types_provided to provide at least on content type if the resource does not respond with an entity?

Isn't setting a content-type header closer to O11, where the etag and body generation takes place?
https://github.com/basho/webmachine/blob/master/src/webmachine_decision_core.erl#L524

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