Browse Source

Added --content-on-error option to wget call for desktop httprequest.

Mark Sibly 6 years ago
parent
commit
2d4babc23e
2 changed files with 1 additions and 1 deletions
  1. BIN
      bin/mx2cc_windows.exe
  2. 1 1
      modules/httprequest/httprequest_desktop.monkey2

BIN
bin/mx2cc_windows.exe


+ 1 - 1
modules/httprequest/httprequest_desktop.monkey2

@@ -25,7 +25,7 @@ Class HttpRequest Extends HttpRequestBase
 	
 		'WGET
 		Local post_data:=_req="POST" ? " -post-data=~q"+text+"~q" Else ""
-		Local cmd:="wget -q -T "+_timeout+" -O ~q"+_tmp+"~q --method="+_req+post_data+" ~q"+_url+"~q"
+		Local cmd:="wget -q -T "+_timeout+" -O ~q"+_tmp+"~q --method="+_req+" --content-on-error"+post_data+" ~q"+_url+"~q"
 	
 		'CURL
 '		Local cmd:="curl -s -m "+_timeout+" -o ~q"+_tmp+"~q ~q"+_url+"~q"