mkarg commented on issue #52: JOHNZON-281 JAX-RS Provider MUST throw 
NoContentException
URL: https://github.com/apache/johnzon/pull/52#issuecomment-535504255
 
 
   This PR proposes a solution which reconstitutes compliance with JAX-RS 2.1 
with a two-step approach to detect an empty input stream:
   
   * First it tries to use mark/reset as this is very fast, but not guaranteed 
to be supported by all kinds of input streams.
   * If this is not possible, then it will actively buffer the first byte, 
which is rather slow, but will work with all kinds of input stream.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to