Skip to content

Add header command setting #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Sep 22, 2023
Prev Previous commit
Next Next commit
Unshadow header variable
  • Loading branch information
code-asher committed Sep 22, 2023
commit 3704482bcd44527ec4506fb23d8bf5d28248ec85
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class CoderRestClient(var url: URL, var token: String, var headerCommand: String
val headers = getHeaders(url, headerCommand)
if (headers.size > 0) {
val builder = request.newBuilder()
headers.forEach { builder.addHeader(it.key, it.value) }
headers.forEach { h -> builder.addHeader(h.key, h.value) }
request = builder.build()
}
it.proceed(request)
Expand Down