mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 05:45:26 +01:00 
			
		
		
		
	Indent subsequent rows of HTTP security headers by two spaces
When printing a long HTTP security header, this commit causes every row after the first one to be indented by two additional spaces. In the case of very long headers, this extra indentation makes it a little easier for readers to see where the next security header begins.
This commit is contained in:
		| @@ -3050,8 +3050,8 @@ run_security_headers() { | |||||||
|                # Include $header when determining where to insert line breaks, but print $header |                # Include $header when determining where to insert line breaks, but print $header | ||||||
|                # separately. |                # separately. | ||||||
|                pr_svrty_good "$header" |                pr_svrty_good "$header" | ||||||
|                header_output="$(out_row_aligned_max_width "$header $HEADERVALUE" "$spaces" $TERM_WIDTH)" |                header_output="$(out_row_aligned_max_width "${header:2} $HEADERVALUE" "$spaces  " $TERM_WIDTH)" | ||||||
|                outln "${header_output#$header}" |                outln "${header_output#${header:2}}" | ||||||
|                fileout "$header" "OK" "$HEADERVALUE" |                fileout "$header" "OK" "$HEADERVALUE" | ||||||
|           fi |           fi | ||||||
|      done |      done | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 David Cooper
					David Cooper