mock-http-server
Version:
Controllable HTTP Server Mock for your functional tests
41 lines (31 loc) • 2.35 kB
Markdown
# Changelog
#### 1.4.5 (2021-11-17)
* Fixed `multipart/form-data` double body parse error.
#### 1.4.4 (2021-06-08)
* Improve fallback to `text/plain` body parse in the request when format is not handled.
#### 1.4.3 (2021-05-28)
* Fallback to `text/plain` body parse in the request when format is not handled.
#### 1.4.1 (2019-10-07)
* Fixed `requests()` filtering: multiple conditions are now in **and** instead of **or** (PR [#21](https://github.com/spreaker/node-mock-http-server/pull/21) - thanks to [danroshko](https://github.com/danroshko))
#### 1.4.0 (2019-09-16)
* Added support to parse request body with `Content-Type: text-plain` (PR [#20](https://github.com/spreaker/node-mock-http-server/pull/20) - thanks to [esanchezm](https://github.com/esanchezm))
#### 1.3.0 (2019-07-31)
* Added `resetHandlers()` (PR [#19](https://github.com/spreaker/node-mock-http-server/pull/19) - thanks to [jyte](https://github.com/jyte))
#### 1.2.0 (2018-12-12)
* Added `getHttpPort()` and `getHttpsPort()` (PR [#18](https://github.com/spreaker/node-mock-http-server/pull/18) - thanks to [Nautigsam](https://github.com/Nautigsam))
#### 1.1.0 (2018-11-14)
* Added support to parse urlencoded request body (PR [#9](https://github.com/spreaker/node-mock-http-server/pull/9) - thanks to [zhaotian2470](https://github.com/zhaotian2470))
* Removed obsolete code in the parsing of JSON-encoded request body (PR [#16](https://github.com/spreaker/node-mock-http-server/pull/16) - thanks to [pitpit](https://github.com/pitpit))
#### 1.0.0 (2018-04-26)
* Added `reply.end` support
* Added `connections()` support
* Documented `reply.headersOverrides`
* Remove headers from response, whose value is `undefined`
* End all the connections on `server.stop()` before closing the HTTP server
#### 0.2.0 (2017-10-18)
* Added wildcard support to `path` (thanks to [danedmunds](https://github.com/danedmunds))
* Parse JSON in incoming request body when request content-type is "application/json" (thanks to [danedmunds](https://github.com/danedmunds))
#### 0.1.0 (2017-02-03)
* Handlers are now appended to the begin of the list, when registering. This allows to override handlers in subsequent `on()` calls (see [Issue #2](https://github.com/spreaker/node-mock-http-server/issues/2)).
#### 0.0.4 (2016-02-04)
* FIX: clear requests array on `server.stop()`