You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Paul Lindner (JIRA)" <ji...@apache.org> on 2009/10/15 02:35:31 UTC

[jira] Resolved: (SHINDIG-1181) Cannot use accept headers with makeRequest

     [ https://issues.apache.org/jira/browse/SHINDIG-1181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Lindner resolved SHINDIG-1181.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1-BETA4

lgtm

> Cannot use accept headers with makeRequest
> ------------------------------------------
>
>                 Key: SHINDIG-1181
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1181
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 1.1-BETA3
>            Reporter: Adam Archer
>             Fix For: 1.1-BETA4
>
>         Attachments: shindig-1181.patch
>
>
> MakeRequestHandler blocks several headers that can be sent in a makeRequest call from the client (using gadgets.io.RequestParameters.HEADERS). One of the blocked headers is "accept" which is preventing us from consuming our REST services as JSON since they return xml by default unless the appropriate header is used.
> I have tried removing "ACCEPT" from MakeRequestHandler.BAD_HEADERS locally. This fixes the problem and I haven't noticed any adverse side effects.
> See the mailing list thread: "MakeRequestHandler.BAD_HEADERS... is killing our REST Service calls"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.