Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ab16c75c
Commit
ab16c75c
authored
Mar 03, 2011
by
Juan Lang
Committed by
Alexandre Julliard
Mar 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Default to 10 minutes expiration for cache entries.
parent
0b5ea6f9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
http.c
dlls/wininet/http.c
+14
-0
No files found.
dlls/wininet/http.c
View file @
ab16c75c
...
...
@@ -3757,6 +3757,7 @@ static BOOL HTTP_ParseDate(LPCWSTR value, FILETIME *ft)
static
void
HTTP_ProcessExpires
(
http_request_t
*
request
)
{
BOOL
expirationFound
=
FALSE
;
int
headerIndex
;
headerIndex
=
HTTP_GetCustomHeaderIndex
(
request
,
szExpires
,
0
,
FALSE
);
...
...
@@ -3766,8 +3767,21 @@ static void HTTP_ProcessExpires(http_request_t *request)
FILETIME
ft
;
if
(
HTTP_ParseDate
(
expiresHeader
->
lpszValue
,
&
ft
))
{
expirationFound
=
TRUE
;
request
->
expires
=
ft
;
}
}
if
(
!
expirationFound
)
{
ULARGE_INTEGER
ft
;
/* With no known age, default to 10 minutes until expiration. */
GetSystemTimeAsFileTime
((
FILETIME
*
)
&
ft
);
ft
.
QuadPart
+=
10
*
60
*
10000000
;
request
->
expires
.
dwLowDateTime
=
ft
.
u
.
LowPart
;
request
->
expires
.
dwHighDateTime
=
ft
.
u
.
HighPart
;
}
}
/***********************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment