Comparing version 0.4.14 to 0.4.15
@@ -33,2 +33,3 @@ const http = require('http') | ||
.useResponse(function (req, res, next) { | ||
console.log('response:', res.statusCode) | ||
res.setHeader('Powered-By', 'rocky') | ||
@@ -35,0 +36,0 @@ console.log('Modified body:', res.body.toString()) |
v0.4.15 / 2017-09-21 | ||
==================== | ||
* fix(#113): explicitly define response status code in response middleware | ||
v0.4.14 / 2017-09-10 | ||
@@ -3,0 +8,0 @@ ==================== |
@@ -36,2 +36,6 @@ const zlib = require('zlib') | ||
res.writeHead = function (code, headers) { | ||
// Explicitly set status code property | ||
if (typeof code === 'number') { | ||
res.statusCode = code | ||
} | ||
headArgs = helpers.toArray(arguments) | ||
@@ -38,0 +42,0 @@ } |
{ | ||
"name": "rocky", | ||
"version": "0.4.14", | ||
"version": "0.4.15", | ||
"description": "Full-featured, middleware-oriented, hackable HTTP and WebSocket proxy", | ||
@@ -9,3 +9,3 @@ "repository": "h2non/rocky", | ||
"engines": { | ||
"node": ">= 0.12" | ||
"node": ">= 4" | ||
}, | ||
@@ -12,0 +12,0 @@ "scripts": { |
@@ -104,3 +104,3 @@ # rocky [![Build Status](https://api.travis-ci.org/h2non/rocky.svg?branch=master&style=flat)](https://travis-ci.org/h2non/rocky) [![Code Climate](https://codeclimate.com/github/h2non/rocky/badges/gpa.svg)](https://codeclimate.com/github/h2non/rocky) [![NPM](https://img.shields.io/npm/v/rocky.svg)](https://www.npmjs.org/package/rocky) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com) [![jsdoc-reference](https://img.shields.io/badge/jsdoc-reference-blue.svg)](http://jsdocs.herokuapp.com/github.com/h2non/rocky) | ||
- [**0.3.x**](https://github.com/h2non/rocky/tree/v0.3.x) - Released at `24.07.2015`. Production-focused version. | ||
- [**0.4.x**](https://github.com/h2non/rocky/tree/master) - Released at `02.10.2015`. Introduces WebSocket support and other minor features. | ||
- [**0.4.x**](https://github.com/h2non/rocky/tree/master) - Released at `02.10.2015`. Introduces WebSocket support and other minor features. Stable & actively maintained. Recommended version. | ||
@@ -107,0 +107,0 @@ ### How does it work? |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
125756
2794