Browse Source

read Last-Modified

pull/1555/head
orignal 4 years ago
parent
commit
489c38ec5b
  1. 2
      libi2pd_client/AddressBook.cpp

2
libi2pd_client/AddressBook.cpp

@ -889,7 +889,7 @@ namespace client
/* assert: res.code == 200 */ /* assert: res.code == 200 */
auto it = res.headers.find("ETag"); auto it = res.headers.find("ETag");
if (it != res.headers.end()) m_Etag = it->second; if (it != res.headers.end()) m_Etag = it->second;
it = res.headers.find("If-Modified-Since"); it = res.headers.find("Last-Modified");
if (it != res.headers.end()) m_LastModified = it->second; if (it != res.headers.end()) m_LastModified = it->second;
if (res.is_chunked()) if (res.is_chunked())
{ {

Loading…
Cancel
Save