MCPcopy Create free account
hub / github.com/apache/httpd / date_canon

Function date_canon

modules/proxy/mod_proxy_http.c:713–730  ·  view source on GitHub ↗

* If the date is a valid RFC 850 date or asctime() date, then it * is converted to the RFC 1123 format. */

Source from the content-addressed store, hash-verified

711 * is converted to the RFC 1123 format.
712 */
713static const char *date_canon(apr_pool_t *p, const char *date)
714{
715 apr_status_t rv;
716 char* ndate;
717
718 apr_time_t time = apr_date_parse_http(date);
719 if (!time) {
720 return date;
721 }
722
723 ndate = apr_palloc(p, APR_RFC822_DATE_LEN);
724 rv = apr_rfc822_date(ndate, time);
725 if (rv != APR_SUCCESS) {
726 return date;
727 }
728
729 return ndate;
730}
731
732static request_rec *make_fake_req(conn_rec *c, request_rec *r)
733{

Callers 1

process_proxy_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected