File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 49
49
# define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2 0x00000800
50
50
#endif
51
51
52
+ #ifndef HTTP_STATUS_PERMANENT_REDIRECT
53
+ # define HTTP_STATUS_PERMANENT_REDIRECT 308
54
+ #endif
55
+
52
56
#ifndef DWORD_MAX
53
57
# define DWORD_MAX 0xffffffff
54
58
#endif
@@ -1071,7 +1075,8 @@ static int winhttp_stream_read(
1071
1075
HTTP_STATUS_REDIRECT == status_code ||
1072
1076
(HTTP_STATUS_REDIRECT_METHOD == status_code &&
1073
1077
get_verb == s -> verb ) ||
1074
- HTTP_STATUS_REDIRECT_KEEP_VERB == status_code )) {
1078
+ HTTP_STATUS_REDIRECT_KEEP_VERB == status_code ||
1079
+ HTTP_STATUS_PERMANENT_REDIRECT == status_code )) {
1075
1080
1076
1081
/* Check for Windows 7. This workaround is only necessary on
1077
1082
* Windows Vista and earlier. Windows 7 is version 6.1. */
You can’t perform that action at this time.
0 commit comments