Skip to content

Commit dc03db9

Browse files
committed
Merge pull request #5 from icebreaker/master
escaping / encoding issue
2 parents 72e6295 + 0f89875 commit dc03db9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

github.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
url: API_URL + path,
2929
data: JSON.stringify(data),
3030
dataType: 'json',
31-
contentType: 'application/x-www-form-urlencoded',
31+
contentType: 'application/json',
3232
success: function(res) { cb(null, res); },
3333
error: function(err) { cb(err); },
3434
headers : headers()
@@ -40,7 +40,7 @@
4040
type: method,
4141
url: API_URL + path,
4242
data: JSON.stringify(data),
43-
contentType: 'application/x-www-form-urlencoded',
43+
contentType: 'application/json',
4444
success: function(res) { cb(null, res); },
4545
error: function(err) { cb(err); },
4646
headers : headers()
@@ -345,4 +345,4 @@
345345
return new Github.User();
346346
};
347347
};
348-
}).call(this);
348+
}).call(this);

0 commit comments

Comments
 (0)