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

Joseph Percivall commented on NIFI-1086:
----------------------------------------

It appears the handler for POST was only checking if the url being passed in 
had "/post" on the end and not actually checking the method being sent. I 
created a new handler for PUT and went through the handlers to make sure they 
checked the method being passed and returned 404 if it was wrong.

Changed to an if/else.

Thanks for the preliminary review [~mcgilman]. I'm going to start incorporating 
the other tickets.

> Refactor InvokeHttp
> -------------------
>
>                 Key: NIFI-1086
>                 URL: https://issues.apache.org/jira/browse/NIFI-1086
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Joseph Percivall
>            Assignee: Joseph Percivall
>             Fix For: 0.4.0
>
>         Attachments: NIFI-1086_refactor_only.patch
>
>
> InvokeHttp currently uses Java's HttpUrlConnection, which is lacking in it's 
> features and ease-of-use. In order to support all the current InvokeHttp 
> pending tickets it's clear that a new underlying library is needed.
> OkHttp looks to be a promising library that focusing on individual 
> transactions (as opposed to Apache's HttpClient that focuses more on 
> sessions). 



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

Reply via email to