diff --git a/src/QHttpEngine/qhttphandler.h b/src/QHttpEngine/qhttphandler.h index 8cbccc3..6fd2c04 100644 --- a/src/QHttpEngine/qhttphandler.h +++ b/src/QHttpEngine/qhttphandler.h @@ -82,14 +82,14 @@ public: /** * @brief Add a redirect for a specific pattern * - * The pattern and location will be added to an internal list that will - * be used when the route() method is invoked to determine whether the + * The pattern and path will be added to an internal list that will be + * used when the route() method is invoked to determine whether the * request matches any patterns. The order of the list is preserved. * * The destination path may use "%1", "%2", etc. to refer to captured * parts of the pattern. The client will receive an HTTP 302 redirect. */ - void addRedirect(const QRegExp &pattern, const QString &location); + void addRedirect(const QRegExp &pattern, const QString &path); /** * @brief Add a handler for a specific pattern diff --git a/src/qhttphandler.cpp b/src/qhttphandler.cpp index 1092e89..c5e933f 100644 --- a/src/qhttphandler.cpp +++ b/src/qhttphandler.cpp @@ -36,9 +36,9 @@ QHttpHandler::QHttpHandler(QObject *parent) { } -void QHttpHandler::addRedirect(const QRegExp &pattern, const QString &destination) +void QHttpHandler::addRedirect(const QRegExp &pattern, const QString &path) { - d->redirects.append(Redirect(pattern, destination)); + d->redirects.append(Redirect(pattern, path)); } void QHttpHandler::addSubHandler(const QRegExp &pattern, QHttpHandler *handler)