[ 
https://issues.apache.org/jira/browse/NIFI-1620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15333835#comment-15333835
 ] 

Joseph Percivall commented on NIFI-1620:
----------------------------------------

I think this is a valid area for a new property but for a different reason that 
what is presented already.

I think it's valid because the PROP_METHOD can accept arbitrary methods but 
currently will only send the body if the request is a POST or PUT method. So 
there is no way to send an "INSERT" command with the body. Adding this property 
would enable further customization of the HTTP request. 

In order to not break backwards compatibility in the 0.x branch, the property 
should be optional and if it's not set then it send the body for POST and PUT 
requests but not for any others. For the master version, you can just make it 
required.

> Allow empty Content-Type in InvokeHTTP processor
> ------------------------------------------------
>
>                 Key: NIFI-1620
>                 URL: https://issues.apache.org/jira/browse/NIFI-1620
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 0.5.1
>            Reporter: Pierre Villard
>            Assignee: Pierre Villard
>             Fix For: 1.0.0, 0.7.0
>
>
> External API could expect a POST request without a Content-Type property or 
> at least with this property empty:
> *Error example:*
> {quote}
> You provided a non-empty HTTP "Content-Type" header ("application/json").  
> This API function requires that the header be missing or empty.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to