We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 664398e + fd064ea commit 59926faCopy full SHA for 59926fa
core/src/main/java/edu/wpi/grip/core/sources/IPCameraFrameGrabber.java
@@ -162,14 +162,15 @@ byte[] readImage() throws IOException {
162
}
163
164
165
+
166
// find embedded jpeg in stream
- final String subheader = sb.toString();
167
+ final String subheader = sb.toString().toLowerCase();
168
//log.debug(subheader);
169
170
// if (boundryKey == null)
171
// {
172
// Yay! - server was nice and sent content length
- int c0 = subheader.indexOf("Content-Length: ");
173
+ int c0 = subheader.indexOf("content-length: ");
174
int c1 = subheader.indexOf('\r', c0);
175
176
if (c0 < 0) {
0 commit comments