diff options
author | fmartian <FredMartian@gmail.com> | 2025-08-18 21:16:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-18 12:16:54 -0700 |
commit | 89c373c20b6032bab819e99cc8ace7b7e6b92360 (patch) | |
tree | 66779c01f62f98e56ef1667acdbd3cb5bd79ae39 /indra/llcorehttp/httpoptions.cpp | |
parent | 527ee429e616e85ce388c9aa65dde3b13b777ff4 (diff) |
Add new LastModified option to HttpRequest handling (#4563)
* Add LastModified: option to the HttpOptions and handle it properly in HttpOpRequest::prepareRequest()
* grid_name could be empty if an invalid grid was passed in.
Diffstat (limited to 'indra/llcorehttp/httpoptions.cpp')
-rw-r--r-- | indra/llcorehttp/httpoptions.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llcorehttp/httpoptions.cpp b/indra/llcorehttp/httpoptions.cpp index d85f6039b1..5abd28e211 100644 --- a/indra/llcorehttp/httpoptions.cpp +++ b/indra/llcorehttp/httpoptions.cpp @@ -47,6 +47,7 @@ HttpOptions::HttpOptions() : mVerifyPeer(sDefaultVerifyPeer), mVerifyHost(false), mDNSCacheTimeout(-1L), + mLastModified(0), mNoBody(false) {} @@ -129,6 +130,11 @@ void HttpOptions::setHeadersOnly(bool nobody) } } +void HttpOptions::setLastModified(time_t lastModified) +{ + mLastModified = lastModified; +} + void HttpOptions::setDefaultSSLVerifyPeer(bool verify) { sDefaultVerifyPeer = verify; |