Skip to content

Commit 1cb49e1

Browse files
authored
DB - Fix for #56 - Header format fixed (#57)
* DB - Fix for #56 - Header format fixed * DB - Update to changelog
1 parent 82951c1 commit 1cb49e1

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.1
2+
3+
- Fix for header format in mockit-routes ([boyney123](https://github.com/boyney123) in [#57](https://github.com/boyney123/mockit/pull/57))
4+
15
## 1.1.0
26

37
- Add the ability to group routes ([JDansercoer](https://github.com/JDansercoer) in [#42](https://github.com/boyney123/mockit/pull/42))

mockit-routes/configuration/routes.json

+14-5
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,20 @@
4747
"httpMethod": "GET",
4848
"statusCode": "200",
4949
"delay": "0",
50-
"headers": {
51-
"x-testing": "tester",
52-
"x-testing2": "tester2",
53-
"x-testing3": "tester3"
54-
},
50+
"headers": [
51+
{
52+
"header": "x-testing",
53+
"value": "tester"
54+
},
55+
{
56+
"header": "x-testing2",
57+
"value": "tester2"
58+
},
59+
{
60+
"header": "x-testing3",
61+
"value": "tester3"
62+
}
63+
],
5564
"payload": {
5665
"name": "Fanny Rath",
5766
"username": "Adell.Adams",

0 commit comments

Comments
 (0)