Curl fix to show headers
This commit is contained in:
		| @@ -1330,7 +1330,7 @@ function post_show_to_hpr_db() { | ||||
|     echo_error "The file \"${post_show_json}\" is not valid json." | ||||
|   fi | ||||
|  | ||||
|   curl --netrc --include --request POST "https://hub.hackerpublicradio.org/cms/add_show_json.php" --header "Content-Type: application/json" --data-binary "@${post_show_json}" | ||||
|   curl --netrc --show-headers --request POST "https://hub.hackerpublicradio.org/cms/add_show_json.php" --header "Content-Type: application/json" --data-binary "@${post_show_json}" | ||||
|  | ||||
|   if [ "$( curl --silent --netrc --write-out '%{http_code}'  https://hub.hackerpublicradio.org/cms/say.php?id=${ep_num} --output /dev/null )" != 200 ] | ||||
|   then | ||||
|   | ||||
		Reference in New Issue
	
	Block a user