Module: sip-router
Branch: pd/crocodile
Commit: d38e225fbb91128d127770126a42f47d21e238c2
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d38e225…
Author: pd <peter.dunkley(a)crocodile-rcs.com>
Committer: pd <peter.dunkley(a)crocodile-rcs.com>
Date: Fri Jul 29 11:56:14 2011 +0100
module_k/xcap_server: Added support HTTP 1.1 pre-conditions (If-Match: and
If-None-Match:)
- Also fixed the ETag: header send by xcap_server as it should be a
quoted-string (RFC 2616 section 3.11 and 14.19).
- If-Match (RFC 2616 section 14.24) and If-None-Match (RFC 2616
section 14.26) are supported for the DELETE, GET, and PUT HTTP
requests.
This feature is useful as it enables clients to cache large XML
documents (user-profiles/avatars/resource-lists) and only have to
download them when they have actually changed (using If-None-Match:)
If-Match: can help with the race conditions present when you have
multiple simultaneous logins by helping to prevent clients from
overwriting changes made by other clients.
---
modules_k/xcap_server/Makefile | 1 +
modules_k/xcap_server/xcap_server.c | 277 +++++++++++++++++++++++++++++------
2 files changed, 234 insertions(+), 44 deletions(-)
Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=d38…