Skip to content

Commit ff34da9

Browse files
authored
Merge pull request #38 from kristapsk/lndhttp-headers
Fix LND REST calls
2 parents f95f0da + fb89f5b commit ff34da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lightning/lndhttp.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ pub const Client = struct {
149149
const opt = std.http.Client.RequestOptions{
150150
.redirect_behavior = .not_allowed, // no redirects in REST API
151151
.headers = reqinfo.stdheaders,
152-
.privileged_headers = reqinfo.xheaders,
152+
.extra_headers = reqinfo.xheaders,
153153
.server_header_buffer = &headersbuf,
154154
};
155155
var req = try self.httpClient.open(reqinfo.httpmethod, reqinfo.url, opt);

0 commit comments

Comments
 (0)