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

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

      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.

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

                Created:
                Updated:
                Resolved: