mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
The URL exposed in the XML documents generated by the server was wrong because instead of using the original URL (from REQUEST_URI) the rewritten query string (from QUERY_STRING) was applied to the internal mUrl variable. This patch also adds some tests for the FCGI request, that handle most common scenarios with bot rewritten and not rewritten URLs. QgsFcgiServerRequest is now exposed to Python mainly for testability purposes.
56 lines
1.6 KiB
Plaintext
56 lines
1.6 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/server/qgsfcgiserverrequest.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsFcgiServerRequest: QgsServerRequest
|
|
{
|
|
%Docstring
|
|
Class defining fcgi request
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsfcgiserverrequest.h"
|
|
%End
|
|
public:
|
|
QgsFcgiServerRequest();
|
|
|
|
virtual QByteArray data() const;
|
|
|
|
|
|
bool hasError() const;
|
|
%Docstring
|
|
Returns true if an error occurred during initialization
|
|
%End
|
|
|
|
virtual QUrl url() const;
|
|
|
|
%Docstring
|
|
|
|
:return: the request url
|
|
|
|
Subclasses may override in case the original URL needs to be
|
|
returned instead of the rewritten one (i.e. from a web server
|
|
rewrite module).
|
|
%End
|
|
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/server/qgsfcgiserverrequest.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|