File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,10 @@ void QgsFcgiServerRequest::readData()
139
139
{
140
140
bool success = false ;
141
141
int length = QString ( lengthstr ).toInt ( &success );
142
- #ifdef QGISDEBUG
142
+ // Note: REQUEST_BODY is not part of CGI standard, and it is not
143
+ // normally passed by any CGI web server and it is implemented only
144
+ // to allow unit tests to inject a request body and simulate a POST
145
+ // request
143
146
const char *request_body = getenv ( " REQUEST_BODY" );
144
147
if ( success && request_body )
145
148
{
@@ -148,6 +151,7 @@ void QgsFcgiServerRequest::readData()
148
151
mData .append ( body.toUtf8 () );
149
152
length = 0 ;
150
153
}
154
+ #ifdef QGISDEBUG
151
155
qDebug () << " fcgi: reading " << lengthstr << " bytes from " << ( request_body ? " REQUEST_BODY" : " stdin" );
152
156
#endif
153
157
if ( success )
You can’t perform that action at this time.
0 commit comments