Skip to content

Commit 38ab234

Browse files
committed
feat: ❇️ added support to form-urlencoded content type
1 parent 5553427 commit 38ab234

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utils/monitor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,10 @@ def make_api_call(self):
300300
logger.debug('component path: %s', component_path)
301301
example = DictQuery(self.components).get(component_path)
302302
logger.debug('example %s', example)
303+
elif content and 'application/x-www-form-urlencoded' in content:
304+
headers['Content-Type'] = 'application/x-www-form-urlencoded'
305+
example = content.get('application/x-www-form-urlencoded').get('example')
306+
303307
# check required body
304308
bodyRequired = self.requestbody.get('required')
305309
if bodyRequired is True and not example:

0 commit comments

Comments
 (0)