Skip to content

Commit

Permalink
Merge pull request #17 from JuliaComputing/tan/grpc
Browse files Browse the repository at this point in the history
set the TE header by default in requests
  • Loading branch information
tanmaykm authored Aug 3, 2021
2 parents 2c5e0b1 + 0398fc1 commit 9558711
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/curl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ function grpc_headers(; timeout::Real=Inf)
headers = LibCURL.curl_slist_append(headers, "User-Agent: $(Curl.USER_AGENT)")
headers = LibCURL.curl_slist_append(headers, "Content-Type: application/grpc+proto")
headers = LibCURL.curl_slist_append(headers, "Content-Length:")
headers = LibCURL.curl_slist_append(headers, "te: trailers")
if timeout !== Inf
headers = LibCURL.curl_slist_append(headers, "grpc-timeout: $(grpc_timeout_header_val(timeout))")
end
Expand Down

0 comments on commit 9558711

Please sign in to comment.