From 0c9201a4168e26249d572856d66b2619cc3738d0 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 6 Jul 2011 00:49:09 +0300 Subject: [PATCH] gobex: Fix also response code for on-demand data based packets --- gobex/gobex-packet.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gobex/gobex-packet.c b/gobex/gobex-packet.c index b3165530f..0e6528edf 100644 --- a/gobex/gobex-packet.c +++ b/gobex/gobex-packet.c @@ -336,8 +336,12 @@ gssize g_obex_packet_encode(GObexPacket *pkt, guint8 *buf, gsize len) ret = get_body(pkt, buf + count, len - count); if (ret < 0) return ret; - if (ret == 0) + if (ret == 0) { + if (pkt->opcode == G_OBEX_RSP_CONTINUE) + buf[0] = G_OBEX_RSP_SUCCESS; buf[0] |= FINAL_BIT; + } + count += ret + 3; } -- 2.47.3