Refactor using request library

https://trello.com/c/Cd4d6OPq/1956-zendesk-62-trouble-with-apiary-sync-to-gh4e
Are you sure? I test it and not have problems with this. 

Ladislav 

Sent from my iPhone

> On 23 Sep 2014, at 14:39, Jakub Korál <notifications@github.com> wrote:
> 
> In index.js:
> 
> >              method: method,
> >              headers: headers
> >          };
> >  
> > -        if (this.debug)
> > +        if (hasBody && query.length) {
> > +            if (self.debug)
> > +                console.log("REQUEST BODY: " + query + "\n");
> > +            options.form = query;
> options.form is wrong.
> Should be options.body = query, because query is already stringified and content-type header is already set.
> 
> —
> Reply to this email directly or view it on GitHub.