Thanks for the clarification Antonio, this makes it simpler. Plus one to
change.

Would accept return a string or string array?
On 22 Mar 2014 12:25, "Antonio Bertucci" <notifications@github.com> wrote:

> In api-explorer/src/main/groovy/com/gertherb/api/shared/ApiScript.groovy:
>
> > +
> > +abstract class ApiScript {
> > +
> > +    void execute() {
> > +        HTTPBuilder http = new HTTPBuilder('https://api.github.com')
> > +        def method = method()
> > +        def contentType = contentType()
> > +        http.request(method, contentType) {
> > +            println 'R E Q U E S T:\n-------------------------------'
> > +
> > +            println "${description()}\n"
> > +
> > +            uri.path = path()
> > +            println "URL:\n\t$method $uri"
> > +
> > +            headers['Accept'] = 'application/vnd.github.v3+json'
>
> Sorry guys, but I think you are confusing things a little. Content-type<http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17>and
> Accept <http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1>are two different headers. Why do you want to mix 'em up? Maybe L23 should
> look like:
>
> headers['Accept'] = accept()
>
> where:
>
> String accept() {
>     'application/vnd.github.v3+json'}
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/novoda/gertherb/pull/2/files#r10862019>
> .
>