From: Michael Niedermayer <[email protected]>
This makes sure we don't send the Except: 100-continue header
if no authentication credentials have been provided.
---
libavformat/http.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/http.c b/libavformat/http.c
index 2e43dd6..f8ee91a 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -461,7 +461,7 @@ static int http_connect(URLContext *h, const char *path,
const char *local_path,
* send Expect: 100-continue to get the 401 response including the
* WWW-Authenticate header, or an 100 continue if no auth actually
* is needed. */
- if (auth && s->auth_state.auth_type == HTTP_AUTH_NONE &&
+ if (*auth && s->auth_state.auth_type == HTTP_AUTH_NONE &&
s->http_code != 401)
send_expect_100 = 1;
}
--
1.7.9.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel