Skip to content

Commit

Permalink
keithwhor#300: reverse args compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ranchodeluxe committed Oct 6, 2016
1 parent 2046f95 commit 69825eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/mocha/endpoint_request.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class EndpointRequest {
'::1',
this.url,
method,
headers,
Object.keys(headers || {}).reduce(function(accum, curr){ headers[curr.toLowerCase()] = headers[curr]; return headers;},{}),
body
),
(err, status, headers, body) => {
Expand All @@ -50,25 +50,25 @@ class EndpointRequest {

}

get(headers, callback) {
get(callback, headers) {

this.mock('GET', null, headers, callback);

}

del(headers, callback) {
del(callback, headers) {

this.mock('DELETE', null, headers, callback);

}

post(body, headers, callback) {
post(body, callback, headers) {

this.mock('POST', body, headers, callback);

}

put(body, headers, callback) {
put(body, callback, headers) {

this.mock('PUT', body, headers, callback);

Expand Down

0 comments on commit 69825eb

Please sign in to comment.