Merge "Return request-id to APIs that don't respond with a body" into stable/rocky

This commit is contained in:
Zuul 2019-03-16 03:40:04 +00:00 committed by Gerrit Code Review
commit a4fae269ab
2 changed files with 5 additions and 1 deletions

View File

@ -866,7 +866,7 @@ class Resource(wsgi.Application):
for hdr, val in response.headers.items(): for hdr, val in response.headers.items():
val = utils.convert_str(val) val = utils.convert_str(val)
response.headers[hdr] = val response.headers[hdr] = val
_set_request_id_header(request, response.headers)
if not request.api_version_request.is_null(): if not request.api_version_request.is_null():
response.headers[API_VERSION_REQUEST_HEADER] = ( response.headers[API_VERSION_REQUEST_HEADER] = (
request.api_version_request.get_string()) request.api_version_request.get_string())

View File

@ -0,0 +1,4 @@
---
fixes:
- APIs that were not returning a request ID ('x-compute-request-id') in the
response headers have been fixed.