Merge "Fix TypeError with Python 3.5"
This commit is contained in:
commit
5348d7050a
@ -28,7 +28,7 @@ class BaseContextMiddleware(mw.Middleware):
|
|||||||
def process_request(self, req):
|
def process_request(self, req):
|
||||||
request_id = req.headers.get('x-openstack-request-id')
|
request_id = req.headers.get('x-openstack-request-id')
|
||||||
if not request_id:
|
if not request_id:
|
||||||
request_id = b'req-' + utils.generate_uuid().encode('ascii')
|
request_id = 'req-' + utils.generate_uuid()
|
||||||
setattr(req, 'request_id', request_id)
|
setattr(req, 'request_id', request_id)
|
||||||
|
|
||||||
def process_response(self, resp):
|
def process_response(self, resp):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user