Parse the accept header in accordance with RFC2616

Bug #1376379 reported by Devdatta Kulkarni on 2014-10-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solum
Low
Gilbert Pilz

Bug Description

Currently for supporting yaml/json content in plan creation, we are using Accept header as the mechanism for specifying whether the content is yaml or json.

Our parsing of Accept header is simplistic. We are doing a 'contains' check to check if the sent data is of type 'yaml'.

https://review.openstack.org/#/c/115684/3/solum/api/controllers/v1/plan.py

As pointed out in comments on that patch just using a 'contains' check is not enough.

This bug is to track this work.

Changed in solum:
assignee: nobody → Gilbert Pilz (gilbert.pilz)
Adrian Otto (aotto) on 2015-06-12
Changed in solum:
importance: Undecided → Low
status: New → Triaged
milestone: none → 2015.1.1
tags: added: solum-api
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers