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
76ff92cb
Commit
76ff92cb
authored
Aug 12, 2002
by
Michael Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_handle_connection() cleanup, major restructuring. No feature changes.
svn path=/trunk/icecast/; revision=3807
parent
6e23c0f8
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
282 additions
and
261 deletions
+282
-261
src/client.c
src/client.c
+11
-0
src/client.h
src/client.h
+1
-0
src/connection.c
src/connection.c
+270
-258
src/util.c
src/util.c
+0
-3
No files found.
src/client.c
View file @
76ff92cb
...
...
@@ -44,3 +44,14 @@ void client_destroy(client_t *client)
free
(
client
);
}
void
client_send_404
(
client_t
*
client
,
char
*
message
)
{
int
bytes
;
bytes
=
sock_write
(
client
->
con
->
sock
,
"HTTP/1.0 404 File Not Found
\r\n
"
"Content-Type: text/html
\r\n\r\n
"
"<b>%s</b>
\r\n
"
,
message
);
if
(
bytes
>
0
)
client
->
con
->
sent_bytes
=
bytes
;
client_destroy
(
client
);
}
src/client.h
View file @
76ff92cb
...
...
@@ -24,5 +24,6 @@ typedef struct _client_tag
client_t
*
client_create
(
connection_t
*
con
,
http_parser_t
*
parser
);
void
client_destroy
(
client_t
*
client
);
void
client_send_404
(
client_t
*
client
,
char
*
message
);
#endif
/* __CLIENT_H__ */
src/connection.c
View file @
76ff92cb
This diff is collapsed.
Click to expand it.
src/util.c
View file @
76ff92cb
...
...
@@ -206,9 +206,6 @@ char *util_get_path_from_normalised_uri(char *uri) {
return
fullpath
;
}
/* Get an absolute path (from the webroot dir) from a URI. Return NULL if the
* path contains 'disallowed' sequences like foo/../ (which could be used to
* escape from the webroot) or if it cannot be URI-decoded.
...
...
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