]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tidy-up: whitespace [ci skip]
authorViktor Szakats <commit@vsz.me>
Tue, 16 Apr 2024 07:52:23 +0000 (09:52 +0200)
committerViktor Szakats <commit@vsz.me>
Tue, 16 Apr 2024 07:53:39 +0000 (09:53 +0200)
docs/ECH.md
tests/ech_combos.py
tests/ech_tests.sh
tests/http/test_01_basic.py
tests/http/test_02_download.py
tests/http/test_05_errors.py
tests/http/test_07_upload.py
tests/http/test_10_proxy.py
tests/http/test_16_info.py

index cfb897d4e501e4c1b2841bb42b2bbcb5b72a8e5b..53bc60afc6b1e8c05135f8ee4488356b921761ba 100644 (file)
@@ -476,4 +476,3 @@ and then re-use that in another invocation.
 
 Both our OpenSSL fork and boringssl have APIs for both controlling GREASE and
 accessing and logging ``retry_configs``, it seems WolfSSL has neither.
-
index 7f41198671b1729031df54594536d4994d554f0c..66daaa373db424a313f6fe2127f0232b6528b673 100755 (executable)
 # Python3 program to print all combination of size r in an array of size n.
 # This is used to generate test lines in tests/ech_test.sh.
 # This will be discarded in the process of moving from experimental,
-# but is worth preserving for the moment in case of changes to the 
+# but is worth preserving for the moment in case of changes to the
 # ECH command line args
 
 def CombinationRepetitionUtil(chosen, arr, badarr, index,
                             r, start, end):
-                                
+
     # Current combination is ready,
     # print it
     if index == r:
-        # figure out if result should be good or bad and 
+        # figure out if result should be good or bad and
         # print prefix, assuming $turl does support ECH so
         # should work if given "positive" parameters
         res = 1
@@ -51,19 +51,19 @@ def CombinationRepetitionUtil(chosen, arr, badarr, index,
         for j in range(r):
             if j != 0 and chosen[j] != chosen[j-1]:
                 print(chosen[j], end = " ")
-            
+
         print()
         return
-        
+
     # When no more elements are
     # there to put in chosen[]
     if start > n:
         return
-        
+
     # Current is included, put
     # next at next location
     chosen[index] = arr[start]
-    
+
     # Current is excluded, replace it
     # with next (Note that i+1 is passed,
     # but index is not changed)
@@ -77,7 +77,7 @@ def CombinationRepetitionUtil(chosen, arr, badarr, index,
 # size n. This function mainly uses
 # CombinationRepetitionUtil()
 def CombinationRepetition(arr, badarr, n, r):
-    
+
     # A temporary array to store
     # all combination one by one
     chosen = [0] * r
@@ -96,4 +96,3 @@ n = len(arr) - 1
 CombinationRepetition(arr, badarr, n, r)
 
 # This code is contributed by Vaibhav Kumar 12.
-
index df8e45b12b7a487cdb0b9a7591b2582d11febcc4..2e8b38b346b6611724ebf9212e5bc174067d8435 100755 (executable)
@@ -356,7 +356,7 @@ then
 # basic ECH good/bad
 for targ in "${!ech_targets[@]}"
 do
-    if [[ "$using_wolf" == "yes" ]] 
+    if [[ "$using_wolf" == "yes" ]]
     then
         case $targ in
             "draft-13.esni.defo.ie:8414" | "tls-ech.dev" | \
@@ -376,7 +376,7 @@ do
     path=${ech_targets[$targ]}
     turl="https://$host:$port/$path"
     echo "ECH check for $turl"
-    { 
+    {
         echo ""
         echo "ECH check for $turl"
     } >> "$logfile"
@@ -415,7 +415,7 @@ then
         path=${ech_targets[$targ]}
         turl="https://$host:$port/$path"
         echo "PN override check for $turl"
-        { 
+        {
             echo ""
             echo "PN override check for $turl"
         } >> "$logfile"
@@ -553,7 +553,7 @@ then
     echo "more cli_test with $turl" >> "$logfile"
 
     # The combinatorics here are handled via the tests/ech_combos.py script
-    # which produces all the relevant combinations or inputs and orders 
+    # which produces all the relevant combinations or inputs and orders
     # thereof. We have to manually assess whether or not ECH is expected to
     # work for each case.
     cli_test "$turl" 0 0
@@ -1148,4 +1148,3 @@ fi
 # add to list of bad runs (updating file age)
 echo "ECH badness at $NOW" >>"$LTOP"/bad_runs
 exit 2
-
index 3902b75b7c934aedc4c1823d0a31e27657ff0cb7..54e7dd4a70706851d176ae7f8ef684e0050c7e2c 100644 (file)
@@ -97,5 +97,3 @@ class TestBasic:
         r.check_stats(http_status=200, count=1)
         assert r.stats[0]['time_connect'] > 0, f'{r.stats[0]}'
         assert r.stats[0]['time_appconnect'] > 0, f'{r.stats[0]}'
-
-
index 34b863f3c079ac5973be2cb84463431773766ef8..00b4a04a4a48d59941ef269c458ec66b1485c14c 100644 (file)
@@ -495,4 +495,3 @@ class TestDownload:
         r.check_exit_code(0)
         srcfile = os.path.join(httpd.docs_dir, docname)
         self.check_downloads(client, srcfile, count)
-
index 68e49f7362a903b9794e573d4859c654973ae06e..1aa8ae6b0af918898bc0246fb7a78c5eddb8bc5f 100644 (file)
@@ -134,4 +134,3 @@ class TestErrors:
         else:
             r.check_exit_code(0)
             r.check_response(http_status=200, count=count)
-
index 1c3bfb0175b7f8bfe7562d758e2f91b7685438a7..1aa51d07106162f6409db582a645b0e5c3e9f179 100644 (file)
@@ -542,4 +542,3 @@ class TestUpload:
             '--expect100-timeout', f'{read_delay-1}'
         ])
         r.check_stats(count=1, http_status=200, exitcode=0)
-
index c191432fb045a2c49e501cb4a65e07d40ab29e0a..1be8d3501489f427903be596cde2393bfac05d7d 100644 (file)
@@ -368,4 +368,3 @@ class TestProxy:
         else:
             r.check_response(count=1, http_status=200,
                              protocol='HTTP/2' if proto == 'h2' else 'HTTP/1.1')
-
index 07ed2ba4d25bca97c1a6b4fad567fb479253fe93..b5459abf75daa3e460a2ff6af7fcc1ad1108d69f 100644 (file)
@@ -159,4 +159,4 @@ class TestInfo:
             f'greater than "time_starttransfer", {s}'
         # assert that transfer start is before total
         assert s['time_starttransfer'] <= s['time_total'], f'"time_starttransfer" '\
-            f'greater than "time_total", {s}'
\ No newline at end of file
+            f'greater than "time_total", {s}'