Skip to content

Commit f5afbd2

Browse files
authored
Merge pull request #94 from oooiik/master
Support Protocol Profile Behavior
2 parents 2cbc360 + 91b7621 commit f5afbd2

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

config/api-postman.php

+14
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,18 @@
156156

157157
'disk' => 'local',
158158

159+
/*
160+
|--------------------------------------------------------------------------
161+
| Protocol Profile Behavior
162+
|--------------------------------------------------------------------------
163+
|
164+
| Set of configurations used to alter the usual behavior of sending the request.
165+
| These can be defined in a collection at Item or ItemGroup level which will be inherited if applicable.
166+
|
167+
*/
168+
169+
'protocol_profile_behavior' => [
170+
'disable_body_pruning' => false, // Control request body pruning for following methods: GET, COPY, HEAD, PURGE, UNLOCK
171+
]
172+
159173
];

src/Commands/ExportPostmanCommand.php

+6
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,12 @@ public function makeRequest($route, $method, $routeHeaders, $requestRules, $requ
316316
],
317317
];
318318

319+
if($this->config['protocol_profile_behavior']['disable_body_pruning']) {
320+
$data['protocolProfileBehavior'] = [
321+
'disableBodyPruning' => true,
322+
];
323+
}
324+
319325
if ($requestRules) {
320326
$ruleData = [];
321327

0 commit comments

Comments
 (0)