Skip to content

Content-type application/x-www-form-urlencoded #35

@mynameisrufus

Description

@mynameisrufus

I think given a response for a resource that has a Content-type: application/json, when you make a PUT or POST to it, it would be nice if it assumed the content type was the same. Currently hyperresource sets the header as Content-type application/x-www-form-urlencoded.

I worked around it by doing this:

HyperResource.new(
  headers: {
    'Accept' => 'application/vnd.trowel-v5+json',
    'Content-Type' => 'application/json'
  }
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions