Skip to content

Commit

Permalink
Lower case statusCode
Browse files Browse the repository at this point in the history
  • Loading branch information
dwettstein committed Aug 24, 2017
1 parent 53b399c commit d9bfad7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [v1.1.0] - 2017-08-24
### Added
- RabbitMQ message consumer for asynchronous script execution
- Add possibility to send parameters as a JSON in the request body
- HTTP: Add possibility to send parameters as a JSON in the request body

### Changed
- Refactor code: extract modules into separate classes
Expand Down
2 changes: 1 addition & 1 deletion PSScriptInvoker/RabbitMqModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private void writeResponse(BasicDeliverEventArgs args, string messageText, int s
props.DeliveryMode = 2;

props.Headers = args.BasicProperties.Headers;
props.Headers.Add("StatusCode", statusCode);
props.Headers.Add("statusCode", statusCode);

lock (rabbitMqChannel)
{
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ For executing scripts asynchronously, you can use the RabbitMQ module of the ser
- Routing key: The routing key you have defined in the service configuration (see [section Configuration](#configuration))
- Headers:
- All headers from the request message will be copied.
- `StatusCode`: A HTTP status code.
- `statusCode`: A HTTP status code.
- Body:
- The script result.

Expand Down

0 comments on commit d9bfad7

Please sign in to comment.