Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([rtp2httpd], [1.5], [ondrej@caletka.cz])
AC_INIT([rtp2httpd], [1.6], [ondrej@caletka.cz])
AC_CONFIG_SRCDIR([src/rtp2httpd.h])
AC_CONFIG_HEADERS([src/config.h])
AM_INIT_AUTOMAKE
Expand Down
6 changes: 6 additions & 0 deletions src/httpclients.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,12 @@ void clientService(int s) {
}
free(method); method=NULL;

/* Strip the trailing slash */
if (url[strlen(url)-1] == '/') {
logger(LOG_DEBUG, "Stripping trailing /: %s\n", url);
url[strlen(url)-1] = '\0';
}

urlfrom = rindex(url, '/');
if (urlfrom == NULL || (conf_hostname && strcasecmp(conf_hostname, hostname)!=0)) {
if (numfields == 3)
Expand Down