Skip to content

Commit

Permalink
Fixed engine variables for request and response middlewares
Browse files Browse the repository at this point in the history
  • Loading branch information
jeronimoalbi committed Apr 27, 2017
1 parent fe23d19 commit 024a0ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
## [1.0.3] - 2017-04-27
### Added
- Added support to run a component server and handle a single request
where the payload is send from the CLI in a JSON file (#72).

### Changed
- Logging was changed to use byte strings without encoding them first.
- HttpActionSchema.get_method() now returns method names in lower case.
- `HttpActionSchema.get_method()` now returns method names in lower case.

### Fixed
- Engine variables now works with request and response middlewares.

## [1.0.2] - 2017-03-28
### Added
Expand Down
2 changes: 2 additions & 0 deletions katana/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def _create_request_component_instance(self, payload):
self.component_name,
self.component_version,
self.framework_version,
variables=self.variables,
debug=self.debug,
# TODO: Use meta and call as arguments instead these many kwargs
service_name=payload.get('call/service'),
Expand All @@ -98,6 +99,7 @@ def _create_response_component_instance(self, payload):
self.component_version,
self.framework_version,
debug=self.debug,
variables=self.variables,
# TODO: Use meta and argument
gateway_protocol=payload.get('meta/protocol'),
gateway_addresses=payload.get('meta/gateway'),
Expand Down

0 comments on commit 024a0ed

Please sign in to comment.