Merge pull request #532 from BBBBlarry/master...
59926fab
Jonathan Leitschuh
committed
1 changed file
IPCameraFrameGrabber.java
/core/src/main/java/edu/wpi/grip/core/sources/IPCameraFrameGrabber.java-2+3
/core/src/main/java/edu/wpi/grip/core/sources/IPCameraFrameGrabber.java
Add comment 162 }
Add comment 163 }
Add comment 164 }
Add comment 165 Plus  
Add comment 165 166 // find embedded jpeg in stream
Add comment 166 Minus   final String subheader = sb.toString();
Add comment 167 Plus   final String subheader = sb.toString().toLowerCase();
Add comment 167 168 //log.debug(subheader);
Add comment 168 169
Add comment 169 170 // if (boundryKey == null)
Add comment 170 171 // {
Add comment 171 172 // Yay! - server was nice and sent content length
Add comment 172 Minus   int c0 = subheader.indexOf("Content-Length: ");
Add comment 173 Plus   int c0 = subheader.indexOf("content-length: ");
Add comment 173 174 int c1 = subheader.indexOf('\r', c0);
Add comment 174 175
Add comment 175 176 if (c0 < 0) {