if (res != GST_RTSP_OK)
goto bad_request;
- if (size == 1) {
- /* no body (only '\0'), keep-alive request */
+ if (size == 0 || !data || strlen ((char *) data) == 0) {
+ /* no body (or only '\0'), keep-alive request */
send_generic_response (client, GST_RTSP_STS_OK, ctx);
} else {
/* there is a body, handle the params */
if (res != GST_RTSP_OK)
goto bad_request;
- if (size == 1) {
- /* no body (only '\0'), keep-alive request */
+ if (size == 0 || !data || strlen ((char *) data) == 0) {
+ /* no body (or only '\0'), keep-alive request */
send_generic_response (client, GST_RTSP_STS_OK, ctx);
} else {
/* there is a body, handle the params */