perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@apache.org
Subject cvs commit: modperl-2.0/xs/Apache/RequestRec Apache__RequestRec.h
Date Sun, 19 May 2002 20:09:27 GMT
dougm       02/05/19 13:09:27

  Added:       xs/Apache/RequestRec Apache__RequestRec.h
  Log:
  wrapper for $r->content_type
  
  Revision  Changes    Path
  1.1                  modperl-2.0/xs/Apache/RequestRec/Apache__RequestRec.h
  
  Index: Apache__RequestRec.h
  ===================================================================
  static MP_INLINE
  const char *mpxs_Apache__RequestRec_content_type(pTHX_ request_rec *r,
                                                   SV *type)
  {
      const char *retval = r->content_type;
  
      if (type) {
          STRLEN len;
          const char *val = SvPV(type, len);
          ap_set_content_type(r, apr_pmemdup(r->pool, val, len));
      }
  
      return retval;
  }
  
  
  

Mime
View raw message