Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: return service unavailable (503) rather than bad request (400)…
… for unavailable streaming
  • Loading branch information
perexg committed Oct 21, 2014
1 parent e1d8c2a commit 109939d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/webui/webui.c
Expand Up @@ -714,7 +714,7 @@ http_stream_service(http_connection_t *hc, service_t *service, int weight)
const char *name;
char addrbuf[50];
void *tcp_id;
int res = HTTP_STATUS_BAD_REQUEST;
int res = HTTP_STATUS_SERVICE;

if(http_access_verify(hc, ACCESS_ADVANCED_STREAMING))
return HTTP_STATUS_UNAUTHORIZED;
Expand Down Expand Up @@ -773,7 +773,7 @@ http_stream_mux(http_connection_t *hc, mpegts_mux_t *mm, int weight)
char addrbuf[50];
void *tcp_id;
const char *str;
int res = HTTP_STATUS_BAD_REQUEST;
int res = HTTP_STATUS_SERVICE;

if(http_access_verify(hc, ACCESS_ADVANCED_STREAMING))
return HTTP_STATUS_UNAUTHORIZED;
Expand Down Expand Up @@ -828,7 +828,7 @@ http_stream_channel(http_connection_t *hc, channel_t *ch, int weight)
const char *name;
char addrbuf[50];
void *tcp_id;
int res = HTTP_STATUS_BAD_REQUEST;
int res = HTTP_STATUS_SERVICE;

if (http_access_verify_channel(hc, ACCESS_STREAMING, ch, 1))
return HTTP_STATUS_UNAUTHORIZED;
Expand Down

0 comments on commit 109939d

Please sign in to comment.