Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bbbc6d11
Commit
bbbc6d11
authored
Mar 13, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't create cache file if it's forbidden.
parent
6874bf3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
http.c
dlls/wininet/http.c
+21
-1
No files found.
dlls/wininet/http.c
View file @
bbbc6d11
...
...
@@ -2261,15 +2261,35 @@ static void commit_cache_entry(http_request_t *req)
static
void
create_cache_entry
(
http_request_t
*
req
)
{
static
const
WCHAR
no_cacheW
[]
=
{
'n'
,
'o'
,
'-'
,
'c'
,
'a'
,
'c'
,
'h'
,
'e'
,
0
};
static
const
WCHAR
no_storeW
[]
=
{
'n'
,
'o'
,
'-'
,
's'
,
't'
,
'o'
,
'r'
,
'e'
,
0
};
WCHAR
url
[
INTERNET_MAX_URL_LENGTH
];
WCHAR
file_name
[
MAX_PATH
+
1
];
BOOL
b
;
BOOL
b
=
TRUE
;
/* FIXME: We should free previous cache file earlier */
heap_free
(
req
->
cacheFile
);
CloseHandle
(
req
->
hCacheFile
);
req
->
hCacheFile
=
NULL
;
if
(
req
->
hdr
.
dwFlags
&
INTERNET_FLAG_NO_CACHE_WRITE
)
b
=
FALSE
;
if
(
b
)
{
int
header_idx
=
HTTP_GetCustomHeaderIndex
(
req
,
szCache_Control
,
0
,
FALSE
);
if
(
header_idx
!=-
1
&&
(
!
strcmpiW
(
req
->
custHeaders
[
header_idx
].
lpszValue
,
no_cacheW
)
||
!
strcmpiW
(
req
->
custHeaders
[
header_idx
].
lpszValue
,
no_storeW
)))
b
=
FALSE
;
}
if
(
!
b
)
{
if
(
!
(
req
->
hdr
.
dwFlags
&
INTERNET_FLAG_NEED_FILE
))
return
;
FIXME
(
"INTERNET_FLAG_NEED_FILE is not supported correctly
\n
"
);
}
b
=
HTTP_GetRequestURL
(
req
,
url
);
if
(
!
b
)
{
WARN
(
"Could not get URL
\n
"
);
...
...
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