bake/async/http.rb in async-http-0.50.12 vs bake/async/http.rb in async-http-0.50.13
- old
+ new
@@ -65,9 +65,18 @@
index += 1
end
end
response.finish
+
+ if trailers = response.headers.trailers
+ trailers.each do |key, value|
+ terminal.print_line(
+ :key, key.rjust(align), :reset, ": ", :value, value.inspect
+ )
+ end
+ end
+
internet.close
end
end
# GET the specified URL and print the response.