Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

test #1405: support HTTP disabled builds

  • Loading branch information...
commit 459435dca17f65955d9d98885f604b1fe495289a 1 parent 3fdb780
yangtse authored March 26, 2012

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  tests/data/test1405
8  tests/data/test1405
@@ -83,8 +83,6 @@ int main(int argc, char *argv[])
83 83
   hnd = curl_easy_init();
84 84
   curl_easy_setopt(hnd, CURLOPT_URL, "ftp://%HOSTIP:%FTPPORT/1405");
85 85
   curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
86  
-  curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
87  
-  curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
88 86
   curl_easy_setopt(hnd, CURLOPT_QUOTE, slist1);
89 87
   curl_easy_setopt(hnd, CURLOPT_POSTQUOTE, slist2);
90 88
   curl_easy_setopt(hnd, CURLOPT_PREQUOTE, slist3);
@@ -124,8 +122,10 @@ int main(int argc, char *argv[])
124 122
 /**** End of sample code ****/
125 123
 </file>
126 124
 <stripfile>
127  
-# curl's default user-agent varies with version, libraries etc.
128  
-s/(USERAGENT, \")[^\"]+/${1}stripped/
  125
+# CURLOPT_USERAGENT and CURLOPT_MAXREDIRS requires HTTP protocol
  126
+# support, IOW depends on configuration - just ignore these.
  127
+$_ = '' if /CURLOPT_USERAGENT/
  128
+$_ = '' if /CURLOPT_MAXREDIRS/
129 129
 # CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
130 130
 # ignore them
131 131
 $_ = '' if /CURLOPT_SSL_VERIFYPEER/

0 notes on commit 459435d

Please sign in to comment.
Something went wrong with that request. Please try again.