summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhadess@cookie.hadess.net <none@none>2007-05-11 16:27:50 +0100
committerhadess@cookie.hadess.net <none@none>2007-05-11 16:27:50 +0100
commitcbdad87eb7b57d4da0fd679f9b86c6f0aeacd5b3 (patch)
treee01ca9d91804654978b4be13f165d8240cf8de3d
parent213eac661441a9c482f280c5cb5ec63240c8d29e (diff)
downloadxine-lib-cbdad87eb7b57d4da0fd679f9b86c6f0aeacd5b3.tar.gz
xine-lib-cbdad87eb7b57d4da0fd679f9b86c6f0aeacd5b3.tar.bz2
Throw a XINE_MSG_PERMISSION_ERROR error when HTTP returns a 401 status
Patch from Dmitri Fedortchenko <dimo <at> angelhill.net>, required for upstream Totem bug: http://bugzilla.gnome.org/show_bug.cgi?id=418316
-rw-r--r--src/input/input_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c
index 6b7ae9158..6e8932700 100644
--- a/src/input/input_http.c
+++ b/src/input/input_http.c
@@ -829,7 +829,7 @@ static int http_plugin_open (input_plugin_t *this_gen ) {
_("input_http: http status not 2xx: >%d %s<\n"),
httpcode, httpstatus);
return -7;
- } else if (httpcode == 403) {
+ } else if (httpcode == 403 || httpcode == 401) {
_x_message(this->stream, XINE_MSG_PERMISSION_ERROR, this->mrl, NULL);
xine_log (this->stream->xine, XINE_LOG_MSG,
_("input_http: http status not 2xx: >%d %s<\n"),