8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 541b8fc + 3f998ae commit cb6bc6fCopy full SHA for cb6bc6f
src/transports/winhttp.c
@@ -49,6 +49,10 @@
49
# define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2 0x00000800
50
#endif
51
52
+#ifndef HTTP_STATUS_PERMANENT_REDIRECT
53
+# define HTTP_STATUS_PERMANENT_REDIRECT 308
54
+#endif
55
+
56
#ifndef DWORD_MAX
57
# define DWORD_MAX 0xffffffff
58
@@ -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)) {
1080
1081
/* Check for Windows 7. This workaround is only necessary on
1082
* Windows Vista and earlier. Windows 7 is version 6.1. */
0 commit comments