HomePhabricator

Return correct `Content-Type` for /openapi endpoint
ce879a266a0bUnpublished

Authored by Eevans on Jun 28 2019, 1:09 AM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Return correct Content-Type for /openapi endpoint

The /openapi endpoint was meant to return Content-Type: application/x-yaml,
but is instead returning text/plain. This changeset reorders the
ResponseWriter WriteHeader() and Header().Set(...) invocations so that the
intended value sticks.

Additionally, a test of the OpenAPI middleware has been included.

Change-Id: I6373d96365fdd01aa1553a3da68e3b3664775ae1

Details

Committed
EevansJun 28 2019, 1:22 AM
Parents
rMSKSc13c61f7bc01: Accept a list of hostnames as Cassandra contacts
Branches
Unknown
Tags
Unknown
References
refs/changes/86/519586/1
ChangeId
I6373d96365fdd01aa1553a3da68e3b3664775ae1