You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/02/28 16:44:26 UTC

[GitHub] mdeuser opened a new issue #276: API GW should adhere to "Accept" header dictates as much as possible

mdeuser opened a new issue #276: API GW should adhere to "Accept" header dictates as much as possible
URL: https://github.com/apache/incubator-openwhisk-apigateway/issues/276
 
 
   Here is one specific example, although other scenarios likely have the same issue.
   
   1. Create an API that is configured with "Require applications to authenticate via API key" enabled.
   2. Invoke the API using curl, but specifying the "Accept" media type as something besides application/json
   3. A 401 is returns with a JSON body and "Content-Type" value of `application/json`
   
   ```
   >curl https://service.us.apiconnect.ibmcloud.com/gws/apigateway/api/API-UNIQUE-ID/API-PATH -H "Accept: application/xml"
   
   {"status":401,"message":"Error: Unauthorized"}
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services