Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
94
Issues
94
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
c3afdff5
Commit
c3afdff5
authored
Jun 18, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feature: Allow POST for web requests
parent
a466900a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/connection.c
src/connection.c
+3
-2
src/stats.c
src/stats.c
+1
-1
No files found.
src/connection.c
View file @
c3afdff5
...
...
@@ -1381,6 +1381,7 @@ static void _handle_authed_client(client_t *client, void *uri, auth_result resul
_handle_stats_request
(
client
,
uri
);
break
;
case
httpp_req_get
:
case
httpp_req_post
:
case
httpp_req_options
:
_handle_get_request
(
client
,
uri
);
break
;
...
...
@@ -1434,7 +1435,7 @@ static void _handle_authentication_mount_generic(client_t *client, void *uri, mo
if
(
!
mountproxy
)
{
int
command_type
=
admin_get_command_type
(
client
->
admin_command
);
if
(
command_type
==
ADMINTYPE_MOUNT
||
command_type
==
ADMINTYPE_HYBRID
)
{
const
char
*
mount
=
httpp_get_
query_
param
(
client
->
parser
,
"mount"
);
const
char
*
mount
=
httpp_get_param
(
client
->
parser
,
"mount"
);
if
(
mount
)
mountproxy
=
__find_non_admin_mount
(
config
,
mount
,
type
);
}
...
...
@@ -1673,7 +1674,7 @@ static void _handle_connection(void)
continue
;
}
client
->
mode
=
config_str_to_omode
(
httpp_get_
query_
param
(
client
->
parser
,
"omode"
));
client
->
mode
=
config_str_to_omode
(
httpp_get_param
(
client
->
parser
,
"omode"
));
if
(
_handle_resources
(
client
,
&
uri
)
!=
0
)
{
client_destroy
(
client
);
...
...
src/stats.c
View file @
c3afdff5
...
...
@@ -1020,7 +1020,7 @@ void stats_transform_xslt(client_t *client, const char *uri)
{
xmlDocPtr
doc
;
char
*
xslpath
=
util_get_path_from_normalised_uri
(
uri
);
const
char
*
mount
=
httpp_get_
query_
param
(
client
->
parser
,
"mount"
);
const
char
*
mount
=
httpp_get_param
(
client
->
parser
,
"mount"
);
doc
=
stats_get_xml
(
0
,
mount
,
client
->
mode
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment