Renamed a parameter in QHttpHandler::addRedirect().
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user