Skip to content

Commit

Permalink
fixed issue 25
Browse files Browse the repository at this point in the history
  • Loading branch information
danwrong committed Feb 3, 2011
1 parent a3083bc commit 38ed76e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions bin/restler
Expand Up @@ -15,4 +15,9 @@ var exportMethods = {

Object.keys(exportMethods).forEach(function(exportMethod) {
replServer.context[exportMethod] = exportMethods[exportMethod];
});

rest.get('http://twaud.io/api/v1/7.json').on('complete', function(data, response) {
console.log(response.headers);
replServer.context.data = data;
});
2 changes: 1 addition & 1 deletion lib/restler.js
Expand Up @@ -196,7 +196,7 @@ var parsers = {
if (contentType) {
for (var matcher in parsers.auto.matchers) {

if (contentType == matcher) {
if (contentType.indexOf(matcher) == 0) {
return parsers.auto.matchers[matcher].call(this, data, callback);
}
}
Expand Down

0 comments on commit 38ed76e

Please sign in to comment.