Closed uglyog closed 3 years ago
@Shakevg This has been fixed in the downstream Pact libraries. I've tested it with 0.4.4.
$ docker run -t -p 8080:8080 -v "$(pwd)/src/:/app/pacts" pactfoundation/pact-stub-server -p 8080 -d pacts
02:13:46 [INFO] Server started on port 8080
02:13:56 [INFO] ===> Received Request ( method: GET, path: /api/user/tracking, query: None, headers: Some({"host": ["localhost:8080"], "accept": ["*/*"], "user-agent": ["curl/7.68.0"]}), body: Empty )
02:13:56 [INFO] comparing to expected Request ( method: GET, path: /api/user/tracking, query: None, headers: Some({"Accept": ["text/plain"]}), body: Missing )
02:13:56 [INFO] <=== Sending Response ( status: 200, headers: Some({"Content-Type": ["text/plain; charset=utf-8"]}), body: Present(4 bytes, text/plain;charset=utf-8) )
02:14:03 [INFO] ===> Received Request ( method: GET, path: /api/user/TRACKING, query: None, headers: Some({"accept": ["*/*"], "host": ["localhost:8080"], "user-agent": ["curl/7.68.0"]}), body: Empty )
02:14:03 [INFO] comparing to expected Request ( method: GET, path: /api/user/tracking, query: None, headers: Some({"Accept": ["text/plain"]}), body: Missing )
02:14:03 [INFO] <=== Sending Response ( status: 200, headers: Some({"Content-Type": ["text/plain; charset=utf-8"]}), body: Present(4 bytes, text/plain;charset=utf-8) )
Copied from https://github.com/pact-foundation/pact-stub-server-archived/issues/13