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
d3f7f5eb
Commit
d3f7f5eb
authored
Dec 08, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Prepend slash to request path if necessary.
parent
15b04630
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
session.c
dlls/winhttp/session.c
+17
-4
No files found.
dlls/winhttp/session.c
View file @
d3f7f5eb
...
...
@@ -468,11 +468,24 @@ HINTERNET WINAPI WinHttpOpenRequest( HINTERNET hconnect, LPCWSTR verb, LPCWSTR o
if
(
!
netconn_init
(
&
request
->
netconn
,
request
->
hdr
.
flags
&
WINHTTP_FLAG_SECURE
))
goto
end
;
if
(
!
verb
||
!
verb
[
0
])
verb
=
getW
;
if
(
!
object
||
!
object
[
0
])
object
=
slashW
;
if
(
!
version
||
!
version
[
0
])
version
=
http1_1
;
if
(
!
(
request
->
verb
=
strdupW
(
verb
)))
goto
end
;
if
(
!
(
request
->
path
=
strdupW
(
object
)))
goto
end
;
if
(
object
)
{
WCHAR
*
path
,
*
p
;
unsigned
int
len
;
len
=
strlenW
(
object
)
+
1
;
if
(
object
[
0
]
!=
'/'
)
len
++
;
if
(
!
(
p
=
path
=
heap_alloc
(
len
*
sizeof
(
WCHAR
)
)))
goto
end
;
if
(
object
[
0
]
!=
'/'
)
*
p
++
=
'/'
;
strcpyW
(
p
,
object
);
request
->
path
=
path
;
}
else
if
(
!
(
request
->
path
=
strdupW
(
slashW
)))
goto
end
;
if
(
!
version
||
!
version
[
0
])
version
=
http1_1
;
if
(
!
(
request
->
version
=
strdupW
(
version
)))
goto
end
;
if
(
!
(
hrequest
=
alloc_handle
(
&
request
->
hdr
)))
goto
end
;
...
...
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