HttpRouter
: Decode path parts before matching. #19
1 changed files with 3 additions and 1 deletions
|
@ -23,6 +23,7 @@
|
|||
*/
|
||||
#include <HttpRouter.h>
|
||||
|
||||
#include <Http.h>
|
||||
#include <Memory.h>
|
||||
#include <HashMap.h>
|
||||
#include <Str.h>
|
||||
|
@ -266,7 +267,8 @@ HttpRouterRoute(HttpRouter * router, char *path, void *args, void **ret)
|
|||
break;
|
||||
}
|
||||
|
||||
ArrayAdd(matches, substr);
|
||||
ArrayAdd(matches, HttpUrlDecode(substr));
|
||||
Free(substr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue