Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1274

Max number of headers is reached when invoking entities with variant encoding throwing an IllegalStateException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.1.0.Beta2, 3.0.20.Final
    • 3.0.14.Final
    • None
    • None

    Description

      When invoking entities with a variant with an encoding, and an IllegalStateException is thrown after a while because request headers reaches to is maximum.

      This is because setEntity on ClientInvocation adds the header to a map:
      headers.header("Content-Encoding", v.getEncoding());

      This should use a putSingle or a method headers.setEncoding should be created like setLanguage or setMediaType.

      Attachments

        Activity

          People

            rsigal@redhat.com Ronald Sigal
            fuzao Ricardo Veloso (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: