Project

Profile

Help

Issue #1103

closed

/crane/repositories endpoint uses wrong header

Added by mhrivnak over 8 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Crane:
1.1.0
Platform Release:
Target Release - Crane:
1.1.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

The endpoint ```/crane/repositories``` looks for the ```Content-Type``` header to decide what type of content to return in the response. That is an incorrect use of this header, and the correct one to use is ```Accept```.

https://tools.ietf.org/html/rfc7231#section-5.3.2

Also available in: Atom PDF