HomePhorge

(#21427) Respect Accept header for destroy
ff0daf49624bUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#21427) Respect Accept header for destroy

The REST destroy action will now respect the formats that are requested in
the Accept header. In order to retain backwards compatibility for
clients that have never been required to specify an Accept before this
it will also default to :yaml when no Accept is provided. If an Accept
is provided but none of the wanted formats are suitable an error is
raised, just like find and search.

Details

Provenance
Andrew Parker <andy@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU7915997cbe6e: (#21427) Respect Accept header for save
Branches
Unknown
Tags
Unknown

Event Timeline

Andrew Parker <andy@puppetlabs.com> committed rPUff0daf49624b: (#21427) Respect Accept header for destroy (authored by Andrew Parker <andy@puppetlabs.com>).Jun 26 2013, 2:17 AM