Add support for application/octet-stream

pull/3779/head
Isaac Connor 2023-10-23 10:09:08 -04:00
parent 1411c47c99
commit 983498cf18
1 changed files with 14 additions and 0 deletions

View File

@ -420,6 +420,11 @@ int RemoteCameraHttp::GetResponse() {
mode = SINGLE_IMAGE;
format = JPEG;
state = CONTENT;
} else if ( !strcasecmp( content_type, "application/octet-stream" ) ) {
// Single image
mode = SINGLE_IMAGE;
format = JPEG;
state = CONTENT;
} else if ( !strcasecmp( content_type, "image/x-rgb" ) ) {
// Single image
mode = SINGLE_IMAGE;
@ -508,6 +513,8 @@ int RemoteCameraHttp::GetResponse() {
if ( !strcasecmp( content_type, "image/jpeg" ) || !strcasecmp( content_type, "image/jpg" ) ) {
format = JPEG;
} else if ( !strcasecmp( content_type, "application/octet-stream" ) ) {
format = JPEG;
} else if ( !strcasecmp( content_type, "image/x-rgb" ) ) {
format = X_RGB;
} else if ( !strcasecmp( content_type, "image/x-rgbz" ) ) {
@ -808,6 +815,11 @@ int RemoteCameraHttp::GetResponse() {
mode = SINGLE_IMAGE;
format = JPEG;
state = CONTENT;
} else if (!strcasecmp(content_type, "application/octet-stream")) {
// Single image
mode = SINGLE_IMAGE;
format = JPEG;
state = CONTENT;
} else if (!strcasecmp(content_type, "image/x-rgb")) {
// Single image
mode = SINGLE_IMAGE;
@ -959,6 +971,8 @@ int RemoteCameraHttp::GetResponse() {
if (!strcasecmp(content_type, "image/jpeg") || !strcasecmp(content_type, "image/jpg")) {
format = JPEG;
} else if (!strcasecmp(content_type, "application/octet-stream")) {
format = JPEG;
} else if (!strcasecmp(content_type, "image/x-rgb")) {
format = X_RGB;
} else if (!strcasecmp(content_type, "image/x-rgbz")) {