* If the date is a valid RFC 850 date or asctime() date, then it * is converted to the RFC 1123 format. */
| 711 | * is converted to the RFC 1123 format. |
| 712 | */ |
| 713 | static 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 | |
| 732 | static request_rec *make_fake_req(conn_rec *c, request_rec *r) |
| 733 | { |
no outgoing calls
no test coverage detected