[Apiman-user] Internal Server Error through DELETE method, when there is no Content-Type in header

Celso Agra celso.agra at gmail.com
Wed Oct 18 05:27:46 EDT 2017


Thanks for your reply, Marc!

I'm using Servlet Apiman Gateway.

Best Regards,

Celso Agra

Em qua, 18 de out de 2017 às 03:47, Marc Savy <marc.savy at redhat.com>
escreveu:

> Hi Celso,
>
> Are you using Vert.x or Servlet Apiman Gateway?
>
> Regards
> Marc
>
> On 17 October 2017 at 16:51, Celso Agra <celso.agra at gmail.com> wrote:
>
>> Hi all,
>>
>> I got an "Internal Server Error" when I send a DELETE request method and
>> there is no Content-Type in header. I'd like to know if this is an expected
>> behavior, or something else should be configured? I'm using Apiman
>> 1.3.0.Final with CORS plugin.
>>
>> PS.: This behavior just occurs when I send a DELETE method request
>> through Apiman without "Content-Type" in header.
>>
>> Here is some examples:
>>
>>
>>> *Example 01 $ curl -X "DELETE"
>>> https://apiman.local/apiman-gateway/test-app/application/1.0/delete/99?apikey=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
>>> <https://apiman.local/apiman-gateway/test-app/application/1.0/delete/99?apikey=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx>**<html><head><title>Error</title></head><body>Internal
>>> Server Error</body></html>*
>>
>>
>>
>>>
>>>
>>> *Example 02 $ curl -H "Content-Type: application/json" -X "DELETE"
>>> https://apiman.local/apiman-gateway/test-app/application/1.0/delete/99?apikey=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
>>> <https://apiman.local/apiman-gateway/test-app/application/1.0/delete/99?apikey=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx>**[
>>> { "return": "OK" } ]*
>>
>>
>>
>>
>> Best Regards,
>>
>> --
>> ---
>> *Celso Agra*
>>
>> _______________________________________________
>> Apiman-user mailing list
>> Apiman-user at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/apiman-user
>>
>>
> --
---
*Celso Agra*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/apiman-user/attachments/20171018/5dbedfd8/attachment.html 


More information about the Apiman-user mailing list