Skip to content

Commit

Permalink
Specify maxResponseHeadersSize when initializing HTTP client (#126)
Browse files Browse the repository at this point in the history
* Specify `maxResponseHeadersSize` when initializing HTTP client

Update to be compatible with newer Chronos versions that have an
additional argument when instantiating `HttpClientRequestRef`.

* Specify max header size implicitly to remain compatible with old Chronos
  • Loading branch information
etan-status authored May 14, 2024
1 parent 798fae1 commit 54dcec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql/httpclient.nim
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ proc sendRequest*(ctx: GraphqlHttpClientRef, query: string,
HttpClientRequestRef.new(
ctx.session, ctx.address,
ctx.meth, ctx.version, {},
newHeaders, body
headers = newHeaders, body = body
)

let resp = await request.send()
Expand Down

0 comments on commit 54dcec7

Please sign in to comment.