Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
It should actually be upper case, but we need to fix pact-foundation/pact-support#3 first
  • Loading branch information
bethesque committed Jan 16, 2015
1 parent 91b1049 commit dfb06fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/pact-consumer-js-dsl.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ Pact.Interaction = Pact.Interaction || {};
withRequest: function(firstParameter, path, headers, body) {

if (typeof(firstParameter) === 'object') {
this.request.method = firstParameter.method;
this.request.method = firstParameter.method.toLowerCase();
this.request.path = firstParameter.path;
this.request.query = firstParameter.query;
this.request.headers = firstParameter.headers;
this.request.body = firstParameter.body;
} else {
this.request.method = firstParameter;
this.request.method = firstParameter.toLowerCase();
this.request.path = path;
this.request.headers = headers;
this.request.body = body;
Expand Down
4 changes: 2 additions & 2 deletions src/interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ Pact.Interaction = Pact.Interaction || {};
withRequest: function(firstParameter, path, headers, body) {

if (typeof(firstParameter) === 'object') {
this.request.method = firstParameter.method;
this.request.method = firstParameter.method.toLowerCase();
this.request.path = firstParameter.path;
this.request.query = firstParameter.query;
this.request.headers = firstParameter.headers;
this.request.body = firstParameter.body;
} else {
this.request.method = firstParameter;
this.request.method = firstParameter.toLowerCase();
this.request.path = path;
this.request.headers = headers;
this.request.body = body;
Expand Down

0 comments on commit dfb06fe

Please sign in to comment.