/[dgee]/dgee/apache/mod_dgee.c
ViewVC logotype

Diff of /dgee/apache/mod_dgee.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by csmith, Sat Mar 29 11:45:39 2003 UTC revision 1.3 by csmith, Sun Sep 21 11:06:38 2003 UTC
# Line 67  typedef struct { Line 67  typedef struct {
67  static void  static void
68  dgee_init( server_rec *s, pool *p )  dgee_init( server_rec *s, pool *p )
69  {  {
70    char *sname = s->server_hostname;    char *sname;
71      sname = s->server_hostname;
72    
73    ap_add_version_component("DotGnu/"DGVERSION );    ap_add_version_component("(DotGNU/"DOTGNUVERSION" mod_dgee/"DGVERSION")" );
74  }  }
75    
76  /* ------------------------------------------------------------------------- */  /* ------------------------------------------------------------------------- */
# Line 77  dgee_init( server_rec *s, pool *p ) Line 78  dgee_init( server_rec *s, pool *p )
78  static void  static void
79  dgee_cleanup( server_rec *s, pool *p )  dgee_cleanup( server_rec *s, pool *p )
80  {  {
81    char *sname = s->server_hostname;    char *sname;
82      sname = s->server_hostname;
83    
84    gw_release(1); /* Drop connection to Goldwater application (1 = forced) */    gw_release(1); /* Drop connection to Goldwater application (1 = forced) */
85  }  }
# Line 111  merge_dgee_config(pool *p, void *basev, Line 113  merge_dgee_config(pool *p, void *basev,
113  static const char *  static const char *
114  set_gwconfig(cmd_parms *cmd, void *dummy, char *arg)  set_gwconfig(cmd_parms *cmd, void *dummy, char *arg)
115  {  {
116    long len = 0;    /* long len = 0; */
117    int  ix  = 0;    /* int  ix  = 0; */
118    char path[128] = {0};    /* char path[128] = {0}; */
119    char *ep= NULL;    char *ep= NULL;
120    server_rec *s = cmd->server;    server_rec *s = cmd->server;
121    
# Line 281  dgee_get_doc(request_rec *r) Line 283  dgee_get_doc(request_rec *r)
283    
284    r->content_type = cont_type;    r->content_type = cont_type;
285    ap_table_set(r->headers_out,"Content-Length", lenstr );    ap_table_set(r->headers_out,"Content-Length", lenstr );
286    ap_table_set(r->headers_out,"X-DGEE-Server",  "DotGNU/"DGVERSION";" );    ap_table_set(r->headers_out,"X-DGEE-Server",  "DGEE/"DGVERSION";" );
287    
288    
289    ap_send_http_header(r);    ap_send_http_header(r);
# Line 314  dgee_call_service(request_rec *r) Line 316  dgee_call_service(request_rec *r)
316    char     *ctype    = NULL;    char     *ctype    = NULL;
317    char     *xml      = NULL;    char     *xml      = NULL;
318    char     *URI      = NULL;    char     *URI      = NULL;
319    char     *ARG      = NULL;  /*   char     *ARG      = NULL; */
320    
321    long      clen     = 0;  /*   long      clen     = 0; */
322    long      len      = 0;    long      len      = 0;
323    int       ret      = 0;    int       ret      = 0;
324    
# Line 372  ap_log_rerror(APLOG_MARK, APLOG_DEBUG, r Line 374  ap_log_rerror(APLOG_MARK, APLOG_DEBUG, r
374    /* Add URI and request XML to buffer    /* Add URI and request XML to buffer
375     */     */
376    gwmc_add_data( request, DGF_REQ_URI,  MIME_TEXT_PLAIN, URI, strlen(URI) );    gwmc_add_data( request, DGF_REQ_URI,  MIME_TEXT_PLAIN, URI, strlen(URI) );
377    gwmc_add_data( request, DGF_REQ_DATA, MIME_TEXT_PLAIN, CSStart(bufferCS), CSLen(bufferCS) );    gwmc_add_data( request, DGF_REQ_DATA, MIME_TEXT_XML,   CSStart(bufferCS), CSLen(bufferCS) );
378    
379    free_cstring( &bufferCS );    free_cstring( &bufferCS );
380    
# Line 423  ap_log_rerror(APLOG_MARK, APLOG_DEBUG, r Line 425  ap_log_rerror(APLOG_MARK, APLOG_DEBUG, r
425    sprintf( lenstr, "%ld", len );    sprintf( lenstr, "%ld", len );
426    
427    ap_table_set(r->headers_out,"Content-Length", lenstr );    ap_table_set(r->headers_out,"Content-Length", lenstr );
428    ap_table_set(r->headers_out,"X-DGEE-Server",  "DotGNU/"DGVERSION";" );    ap_table_set(r->headers_out,"X-DGEE-Server",  "DGEE/"DGVERSION";" );
429    
430    ap_send_http_header(r);    ap_send_http_header(r);
431    
# Line 456  dgee_handler(request_rec *r) Line 458  dgee_handler(request_rec *r)
458      case M_POST:      case M_POST:
459            return dgee_call_service(r);            return dgee_call_service(r);
460    
461      default:            /* default: */
462              /* keep gcc happy */
463    }    }
464    
465    return HTTP_BAD_REQUEST;    return HTTP_BAD_REQUEST;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26