Add support for application/octet-stream
parent
1411c47c99
commit
983498cf18
|
@ -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")) {
|
||||
|
|
Loading…
Reference in New Issue