changes from draft-ietf-core-coap-03

* removed option Uri-Scheme
* added support for Uri-Query
* version number increment (0.07)
This commit is contained in:
Olaf Bergmann committed 2010-10-26 14:40:55 +02:00
1 parent f5a0e1dd3a
commit 2d25b6f262
9 files changed
+65 -50

No files matched your search

+4 -4
View File
@@ -549,10 +549,6 @@ handle_delete(coap_context_t *ctx, coap_queue_t *node, void *data) {
/* create the response */
pdu = new_response(ctx, node, COAP_RESPONSE_200);
if (uri.scheme.length)
coap_add_option(pdu, COAP_OPTION_URI_SCHEME,
uri.scheme.length, uri.scheme.s);
if (uri.na.length)
coap_add_option(pdu, COAP_OPTION_URI_AUTHORITY,
uri.na.length, uri.na.s);
@@ -566,6 +562,10 @@ handle_delete(coap_context_t *ctx, coap_queue_t *node, void *data) {
coap_add_option(pdu, COAP_OPTION_TOKEN,
COAP_OPT_LENGTH(*tok), COAP_OPT_VALUE(*tok));
if (uri.query.length)
coap_add_option(pdu, COAP_OPTION_URI_QUERY,
uri.query.length, uri.query.s);
coap_delete_resource(ctx, coap_uri_hash(&uri));
return pdu;