Parse the accept header in accordance with RFC2616

Bug #1376379 reported by Devdatta Kulkarni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solum
Triaged
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.

Tags: solum-api
Changed in solum:
assignee: nobody → Gilbert Pilz (gilbert.pilz)
Adrian Otto (aotto)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.