File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
python/server/auto_generated Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,11 @@ Returns true if an error occurred during initialization
38
38
39
39
:return: the request url
40
40
41
- Subclasses may override in case the original URL needs to be
42
- returned instead of the rewritten one (i.e. from a web server
43
- rewrite module).
41
+ Overrides base implementation because FCGI is typically behind
42
+ a proxy server and QGIS Server will see a rewritten QUERY_STRING.
43
+ FCGI implementation stores the REQUEST_URI (which is the URL seen
44
+ by the proxy before it gets rewritten) and returns it instead of
45
+ the rewritten one.
44
46
%End
45
47
46
48
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ QByteArray QgsFcgiServerRequest::data() const
135
135
136
136
QUrl QgsFcgiServerRequest::url () const
137
137
{
138
- return mOriginalUrl ;
138
+ return mOriginalUrl . isEmpty () ? QgsServerRequest::url () : mOriginalUrl ;
139
139
}
140
140
141
141
// Read post put data
Original file line number Diff line number Diff line change @@ -45,9 +45,11 @@ class SERVER_EXPORT QgsFcgiServerRequest: public QgsServerRequest
45
45
/* *
46
46
* \returns the request url
47
47
*
48
- * Subclasses may override in case the original URL needs to be
49
- * returned instead of the rewritten one (i.e. from a web server
50
- * rewrite module).
48
+ * Overrides base implementation because FCGI is typically behind
49
+ * a proxy server and QGIS Server will see a rewritten QUERY_STRING.
50
+ * FCGI implementation stores the REQUEST_URI (which is the URL seen
51
+ * by the proxy before it gets rewritten) and returns it instead of
52
+ * the rewritten one.
51
53
*/
52
54
QUrl url () const override ;
53
55
You can’t perform that action at this time.
0 commit comments