Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1405

InvokeHttp always uses Chunked Encoding for POST/PUT calls

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.1
    • Fix Version/s: 0.5.0
    • Component/s: None
    • Labels:
      None

      Description

      Following an email thread on the dev mailing list, InvokeHttp currently forces chunked encoding because the content length method of the request body is not overrided (so it returns -1).

      To fix and enable configuration, a property to "use chunked encoding" is necessary which will then determine whether or not to implement the content length method.

      This line of OkHttp is import: https://github.com/square/okhttp/blob/parent-2.7.1/okhttp/src/main/java/com/squareup/okhttp/Call.java#L263

        Attachments

          Activity

            People

            • Assignee:
              jpercivall Joe Percivall
              Reporter:
              jpercivall Joe Percivall
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: