Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
eea84fca
Commit
eea84fca
authored
Jul 16, 2012
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commited support for HTTP PUT, See
#1812
svn path=/icecast/trunk/httpp/; revision=18452
parent
d4483f08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/httpp/httpp.c
src/httpp/httpp.c
+5
-0
src/httpp/httpp.h
src/httpp/httpp.h
+1
-1
No files found.
src/httpp/httpp.c
View file @
eea84fca
...
...
@@ -342,6 +342,8 @@ int httpp_parse(http_parser_t *parser, const char *http_data, unsigned long len)
parser
->
req_type
=
httpp_req_get
;
}
else
if
(
strcasecmp
(
"POST"
,
req_type
)
==
0
)
{
parser
->
req_type
=
httpp_req_post
;
}
else
if
(
strcasecmp
(
"PUT"
,
req_type
)
==
0
)
{
parser
->
req_type
=
httpp_req_put
;
}
else
if
(
strcasecmp
(
"HEAD"
,
req_type
)
==
0
)
{
parser
->
req_type
=
httpp_req_head
;
}
else
if
(
strcasecmp
(
"SOURCE"
,
req_type
)
==
0
)
{
...
...
@@ -392,6 +394,9 @@ int httpp_parse(http_parser_t *parser, const char *http_data, unsigned long len)
case
httpp_req_post
:
httpp_setvar
(
parser
,
HTTPP_VAR_REQ_TYPE
,
"POST"
);
break
;
case
httpp_req_put
:
httpp_setvar
(
parser
,
HTTPP_VAR_REQ_TYPE
,
"PUT"
);
break
;
case
httpp_req_head
:
httpp_setvar
(
parser
,
HTTPP_VAR_REQ_TYPE
,
"HEAD"
);
break
;
...
...
src/httpp/httpp.h
View file @
eea84fca
...
...
@@ -22,7 +22,7 @@
#define HTTPP_VAR_ICYPASSWORD "__icy_password"
typedef
enum
httpp_request_type_tag
{
httpp_req_none
,
httpp_req_get
,
httpp_req_post
,
httpp_req_head
,
httpp_req_none
,
httpp_req_get
,
httpp_req_post
,
httpp_req_put
,
httpp_req_head
,
httpp_req_source
,
httpp_req_play
,
httpp_req_stats
,
httpp_req_unknown
}
httpp_request_type_e
;
...
...
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