jira-importer opened a new issue, #1482:
URL: https://github.com/apache/httpcomponents-core/issues/1482

   **[Steve 
Loughran](https://issues.apache.org/jira/secure/[email protected])**
 opened 
**[HTTPCORE-233](https://issues.apache.org/jira/browse/HTTPCORE-233?redirect=false)**
 and commented
   
   I understand that some people may view this as expected behaviour, but I'm 
trying to track down why some of my tests are failing with a message body of "" 
rather than some JSON, and it looks to me a bit like `EntityUtils` is at fault 
for hiding the real problem.
   
   Looking at line 138 of `EntityUtils` , the code goes
   
   ```
   InputStream instream = entity.getContent();
   if (instream == null) {
       return "";
   }
   ```
   
   that is, null content is turned into an empty string. I'd be happier if null 
content got returned as null, then I'd be able to distinguish problems. As it 
is, I'm going to have to copy the method and tweak it.
   
   
   ---
   
   **Affects:** 4.0.1
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to