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
646d2a2a
Commit
646d2a2a
authored
Jul 23, 2000
by
John R. Sheets
Committed by
Alexandre Julliard
Jul 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a few more fields to HTTP_GetStdHeaderIndex() and fix some typos.
parent
4d2bd364
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
http.c
dlls/wininet/http.c
+16
-4
No files found.
dlls/wininet/http.c
View file @
646d2a2a
...
...
@@ -588,7 +588,7 @@ BOOL WINAPI HTTP_HttpSendRequestA(HINTERNET hHttpRequest, LPCSTR lpszHeaders,
requestStringLen
+=
headerLength
+
2
;
/* \r\n */
}
/* Calculate length of custom re
uq
est headers */
/* Calculate length of custom re
qu
est headers */
for
(
i
=
0
;
i
<
lpwhr
->
nCustHeaders
;
i
++
)
{
if
(
lpwhr
->
pCustHeaders
[
i
].
wFlags
&
HDR_ISREQUEST
)
...
...
@@ -598,7 +598,7 @@ BOOL WINAPI HTTP_HttpSendRequestA(HINTERNET hHttpRequest, LPCSTR lpszHeaders,
}
}
/* Calculate the length of stadard request headers */
/* Calculate the length of sta
n
dard request headers */
for
(
i
=
0
;
i
<=
HTTP_QUERY_MAX
;
i
++
)
{
if
(
lpwhr
->
StdHeaders
[
i
].
wFlags
&
HDR_ISREQUEST
)
...
...
@@ -623,7 +623,7 @@ BOOL WINAPI HTTP_HttpSendRequestA(HINTERNET hHttpRequest, LPCSTR lpszHeaders,
lpwhr
->
lpszHostName
?
(
HTTPHEADER
HTTPHOSTHEADER
)
:
HTTPHEADER
,
lpwhr
->
lpszHostName
?
lpwhr
->
lpszHostName
:
""
);
/* Append standard request heades */
/* Append standard request heade
r
s */
for
(
i
=
0
;
i
<=
HTTP_QUERY_MAX
;
i
++
)
{
if
(
lpwhr
->
StdHeaders
[
i
].
wFlags
&
HDR_ISREQUEST
)
...
...
@@ -962,7 +962,7 @@ BOOL HTTP_InterpretHttpHeader(LPSTR buffer, LPSTR field, INT fieldlen, LPSTR val
/***********************************************************************
* HTTP_GetStdHeaderIndex (internal)
*
* Lookup field index in stadard http header array
* Lookup field index in sta
n
dard http header array
*
* FIXME: This should be stuffed into a hash table
*/
...
...
@@ -986,6 +986,18 @@ INT HTTP_GetStdHeaderIndex(LPCSTR lpszField)
index
=
HTTP_QUERY_REFERER
;
else
if
(
!
_stricmp
(
lpszField
,
"Content-Transfer-Encoding"
))
index
=
HTTP_QUERY_CONTENT_TRANSFER_ENCODING
;
else
if
(
!
_stricmp
(
lpszField
,
"Date"
))
index
=
HTTP_QUERY_DATE
;
else
if
(
!
_stricmp
(
lpszField
,
"Server"
))
index
=
HTTP_QUERY_SERVER
;
else
if
(
!
_stricmp
(
lpszField
,
"Connection"
))
index
=
HTTP_QUERY_CONNECTION
;
else
if
(
!
_stricmp
(
lpszField
,
"ETag"
))
index
=
HTTP_QUERY_ETAG
;
else
if
(
!
_stricmp
(
lpszField
,
"Accept-Ranges"
))
index
=
HTTP_QUERY_ACCEPT_RANGES
;
else
if
(
!
_stricmp
(
lpszField
,
"Expires"
))
index
=
HTTP_QUERY_EXPIRES
;
else
{
FIXME
(
"Couldn't find %s in standard header table
\n
"
,
lpszField
);
...
...
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