Changeset 4778e9c3ac3f3b976f6d6d47720c5968e552d316

Show
Ignore:
Timestamp:
04/28/10 01:28:41 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1272418121 +0000
git-parent:

[73860f6fab470281b52162efc311f0c8c40b5e72]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1272418121 +0000
Message:

add MERGE support into the rest driver, fixes #271

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_rest.c

    r37f5a09 r4778e9c  
    339339        primer = "PUT "; 
    340340        break; 
     341      case NOIT_CONTROL_MERGE: 
     342        primer = "MERG"; 
     343        break; 
    341344      default: 
    342345        goto socket_error; 
     
    568571                                 noit_http_rest_handler); 
    569572  noit_control_dispatch_delegate(noit_control_dispatch, 
     573                                 NOIT_CONTROL_MERGE, 
     574                                 noit_http_rest_handler); 
     575  noit_control_dispatch_delegate(noit_control_dispatch, 
    570576                                 NOIT_CONTROL_GET, 
    571577                                 noit_http_rest_handler); 
  • src/noit_rest.h

    r3d36f5a r4778e9c  
    4343#define NOIT_CONTROL_DELETE 0x44454c45 /* "DELE" */ 
    4444#define NOIT_CONTROL_PUT    0x50555420 /* "PUT " */ 
     45#define NOIT_CONTROL_MERGE  0x4d455247 /* "MERG" */ 
    4546 
    4647typedef struct noit_http_rest_closure noit_http_rest_closure_t;