Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19be499

Browse files
fix: fix cors parameter not doing anything
If the cors parameter is set to True '--cors=*' is appended to the list of commands for the external mock service. Previously the parameter was ignored.
1 parent 71a7397 commit 19be499

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pact/pact.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ def start_service(self):
214214
command.extend(['--sslcert', self.sslcert])
215215
if self.sslkey:
216216
command.extend(['--sslkey', self.sslkey])
217+
if self.cors:
218+
command.extend(['--cors'])
217219

218220
self._process = Popen(command)
219221
self._wait_for_server_start()

0 commit comments

Comments
 (0)