Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
3f998aee
Commit
3f998aee
authored
5 years ago
by
pcpthm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow 308 redirect in WinHTTP transport
parent
a31f4c4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
src/transports/winhttp.c
+6
-1
No files found.
src/transports/winhttp.c
View file @
3f998aee
...
...
@@ -49,6 +49,10 @@
# define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2 0x00000800
#endif
#ifndef HTTP_STATUS_PERMANENT_REDIRECT
# define HTTP_STATUS_PERMANENT_REDIRECT 308
#endif
#ifndef DWORD_MAX
# define DWORD_MAX 0xffffffff
#endif
...
...
@@ -1071,7 +1075,8 @@ replay:
HTTP_STATUS_REDIRECT
==
status_code
||
(
HTTP_STATUS_REDIRECT_METHOD
==
status_code
&&
get_verb
==
s
->
verb
)
||
HTTP_STATUS_REDIRECT_KEEP_VERB
==
status_code
))
{
HTTP_STATUS_REDIRECT_KEEP_VERB
==
status_code
||
HTTP_STATUS_PERMANENT_REDIRECT
==
status_code
))
{
/* Check for Windows 7. This workaround is only necessary on
* Windows Vista and earlier. Windows 7 is version 6.1. */
...
...
This diff is collapsed.
Click to expand it.
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