EepGet: Handle HTTP response line with no status text

This commit is contained in:
zzz
2018-04-23 15:46:35 +00:00
parent a047b91deb
commit 0500bbb186

View File

@@ -1169,8 +1169,9 @@ public class EepGet {
* @return HTTP response code (200, 206, other)
*/
private int handleStatus(String line) {
line = line.trim();
if (_log.shouldLog(Log.DEBUG))
_log.debug("Status line: [" + line.trim() + "]");
_log.debug("Status line: [" + line + "]");
String[] toks = DataHelper.split(line, " ", 3);
if (toks.length < 2) {
if (_log.shouldLog(Log.WARN))