From f97fa9b24c559e1e202650b2ff2b3b3d7a04df57 Mon Sep 17 00:00:00 2001 From: ochafik Date: Sat, 27 Apr 2024 19:10:03 +0100 Subject: [PATCH] curl: nit: no need for multiline regex flag --- common/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/common.cpp b/common/common.cpp index 447854564..584094f3e 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -1979,7 +1979,7 @@ static bool llama_download_file(const std::string & url, const std::string & pat auto header_callback = [](char * buffer, size_t /*size*/, size_t n_items, void * userdata) -> size_t { llama_load_model_from_url_headers *headers = (llama_load_model_from_url_headers *) userdata; - static std::regex header_regex("([^:]+): (.*)\r\n", std::regex_constants::multiline); + static std::regex header_regex("([^:]+): (.*)\r\n"); static std::regex etag_regex("ETag", std::regex_constants::icase); static std::regex last_modified_regex("Last-Modified", std::regex_constants::icase);