File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,14 +203,6 @@ function _doSingle(req) {
203203 var opts = _buildOpts ( req ) ;
204204 var resp = UrlFetchApp . fetch ( req . u , opts ) ;
205205
206- // Raw-return mode for exit-node path.
207- // r:true = return destination body verbatim so Rust gets {s,h,b} unwrapped.
208- if ( req . r === true ) {
209- return ContentService
210- . createTextOutput ( resp . getContentText ( ) )
211- . setMimeType ( ContentService . MimeType . JSON ) ;
212- }
213-
214206 return _json ( {
215207 s : resp . getResponseCode ( ) ,
216208 h : _respHeaders ( resp ) ,
@@ -316,7 +308,7 @@ function _buildOpts(req) {
316308 var opts = {
317309 method : ( req . m || "GET" ) . toLowerCase ( ) ,
318310 muteHttpExceptions : true ,
319- followRedirects : true , // ← always true; r flag now has different meaning
311+ followRedirects : req . r !== false ,
320312 validateHttpsCertificates : true ,
321313 escaping : false ,
322314 } ;
You can’t perform that action at this time.
0 commit comments