Update common/common.cpp
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
parent
b088122719
commit
f22456d8c3
1 changed files with 1 additions and 1 deletions
|
@ -1711,7 +1711,7 @@ struct llama_model *llama_load_model_from_url(const char *model_url, const char
|
|||
strncpy(headers->etag, buffer + strlen(etag_prefix), n_items - strlen(etag_prefix) - 2); // Remove LRLF
|
||||
}
|
||||
|
||||
const char *last_modified_prefix = "last-modified: ";
|
||||
const char * last_modified_prefix = "last-modified: ";
|
||||
if (strncmp(buffer, last_modified_prefix, strlen(last_modified_prefix)) == 0) {
|
||||
strncpy(headers->last_modified, buffer + strlen(last_modified_prefix),
|
||||
n_items - strlen(last_modified_prefix) - 2); // Remove LRLF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue