Uploaded image for project: 'Apache AWF'
  1. Apache AWF
  2. AWF-154

Problems with PUT request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None

    Description

      Hi,

      It seems that PUT requests that contain a large body are truncated.
      Temporarily, I resolved with the following workaround in the method HttpRequest.of ()

      if (requestLine.contains ("POST") | | requestLine.contains ("PUT")) {
      int ContentLength = Integer.parseInt (generalHeaders.get ("content-length"));
      if (ContentLength> body.length ())

      { return new PartialHttpRequest (requestLine, generalHeaders, body); }

      }

      I hope it can be helpful

      Attachments

        1. deft-153_preview.patch
          3 kB
          Michele ZuccalĂ 

        Activity

          People

            jmeehan Johnathan Meehan
            niklas Niklas Therning
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: