| 495 | } |
| 496 | |
| 497 | std::time_t convertHttpDateToTime(const std::string& httpDate) { |
| 498 | std::tm tm = {}; |
| 499 | std::stringstream ss(httpDate); |
| 500 | ss >> std::get_time(&tm, "%a, %d %b %Y %H:%M:%S"); |
| 501 | return internalTimegm(&tm); |
| 502 | } |
| 503 | |
| 504 | } // namespace |
| 505 |
no test coverage detected