Renamed a parameter in QHttpHandler::addRedirect().

This commit is contained in:
Nathan Osman
2015-07-18 16:42:53 -07:00
parent 04434b2799
commit c8e6812b5d
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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)