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

ASF GitHub Bot commented on NIFI-1620:
--------------------------------------

Github user pvillard31 commented on the pull request:

    https://github.com/apache/nifi/pull/272#issuecomment-198776846
  
    Should be OK now : 
    - Added body property
    - Reverted default Content-Type and original unit tests
    - Authorized no incoming connection with POST/PUT
    - Added check : if content-type empty, body must be empty
    - Added check : if body empty, content-type must be empty
    - Added unit tests
    - Tested against the API at the origin of the JIRA


> 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
>
> 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