@@ -24,6 +24,8 @@ Feature: Combined text
2424 RspecApiDocumentation.configure do |config|
2525 config.app = App
2626 config.format = :combined_json
27+ config.request_headers_to_include = %w[Host]
28+ config.response_headers_to_include = %w[Content-Type]
2729 end
2830
2931 resource "Greetings" do
@@ -84,8 +86,7 @@ Feature: Combined text
8486 "request_path": "/greetings?target=rspec_api_documentation",
8587 "request_body": null,
8688 "request_headers": {
87- "Host": "example.org",
88- "Cookie": ""
89+ "Host": "example.org"
8990 },
9091 "request_query_parameters": {
9192 "target": "rspec_api_documentation"
@@ -95,8 +96,7 @@ Feature: Combined text
9596 "response_status_text": "OK",
9697 "response_body": "Hello, rspec_api_documentation!",
9798 "response_headers": {
98- "Content-Type": "text/plain",
99- "Content-Length": "31"
99+ "Content-Type": "text/plain"
100100 },
101101 "response_content_type": "text/plain",
102102 "curl": null
@@ -121,8 +121,7 @@ Feature: Combined text
121121 "request_path": "/greetings?target=Sam+%26+Eric",
122122 "request_body": null,
123123 "request_headers": {
124- "Host": "example.org",
125- "Cookie": ""
124+ "Host": "example.org"
126125 },
127126 "request_query_parameters": {
128127 "target": "Sam & Eric"
@@ -132,8 +131,7 @@ Feature: Combined text
132131 "response_status_text": "OK",
133132 "response_body": "Hello, Sam & Eric!",
134133 "response_headers": {
135- "Content-Type": "text/plain",
136- "Content-Length": "18"
134+ "Content-Type": "text/plain"
137135 },
138136 "response_content_type": "text/plain",
139137 "curl": null
0 commit comments