Permalink
Browse files

includes protocol and request versions in kitchen request-info output (

  • Loading branch information...
shamsimam authored and DaoWen committed Jan 24, 2019
1 parent 27dc77a commit ddb1f5fd2b41515fa3497ee85db6397cf8997323
Showing with 4 additions and 1 deletion.
  1. +4 −1 kitchen/bin/kitchen
@@ -855,7 +855,10 @@ class Kitchen(HTTPWebSocketsHandler):

def __request_info(self):
"""Build request-info endpoint dict data JSON response."""
info = { 'request-method': self.__method, 'uri': self.__path }
info = { 'protocol-version': self.protocol_version,
'request-version': self.request_version,
'request-method': self.__method,
'uri': self.__path }
if len(self.headers) > 0:
info['headers'] = { k.lower(): v for k, v in self.headers.items() }
if self.__query is not None:

0 comments on commit ddb1f5f

Please sign in to comment.