mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
souphttpsrc: don't try to authenticate if no username/password is set.
This commit is contained in:
parent
c5b420068a
commit
07c454d61e
1 changed files with 4 additions and 2 deletions
|
@ -703,8 +703,10 @@ gst_soup_http_src_authenticate_cb (SoupSession * session, SoupMessage * msg,
|
||||||
if (!retrying) {
|
if (!retrying) {
|
||||||
/* First time authentication only, if we fail and are called again with retry true fall through */
|
/* First time authentication only, if we fail and are called again with retry true fall through */
|
||||||
if (msg->status_code == SOUP_STATUS_UNAUTHORIZED) {
|
if (msg->status_code == SOUP_STATUS_UNAUTHORIZED) {
|
||||||
|
if (src->user_id && src->user_pw)
|
||||||
soup_auth_authenticate (auth, src->user_id, src->user_pw);
|
soup_auth_authenticate (auth, src->user_id, src->user_pw);
|
||||||
} else if (msg->status_code == SOUP_STATUS_PROXY_AUTHENTICATION_REQUIRED) {
|
} else if (msg->status_code == SOUP_STATUS_PROXY_AUTHENTICATION_REQUIRED) {
|
||||||
|
if (src->proxy_id && src->proxy_pw)
|
||||||
soup_auth_authenticate (auth, src->proxy_id, src->proxy_pw);
|
soup_auth_authenticate (auth, src->proxy_id, src->proxy_pw);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue