jax-rs-spec
  1. jax-rs-spec
  2. JAX_RS_SPEC-402

Restrict the case of having the empty payload to HTTP Content-Length available and set to 0

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: ice box
    • Component/s: spec
    • Labels:
      None

      Description

      Hi All, we have the cases where:

      • the non-empty payload is available and no Content-Length header is available
      • checking InputStream.available() to determine if the payload is really empty causes side-effects

      Proposal: have the spec text saying that the runtime can only reliably determine the payload is empty if Content-Length is available and set to 0.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            beryozkin_sergey
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: