File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
onebusaway-sdk-java-client-okhttp/src/main/kotlin/org/onebusaway/client/okhttp Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -111,19 +111,19 @@ class OkHttpClient private constructor(private val okHttpClient: okhttp3.OkHttpC
111111
112112 val builder = Request .Builder ().url(toUrl()).method(method.name, body)
113113 headers.names().forEach { name ->
114- headers.values(name).forEach { builder.header (name, it) }
114+ headers.values(name).forEach { builder.addHeader (name, it) }
115115 }
116116
117117 if (
118118 ! headers.names().contains(" X-Stainless-Read-Timeout" ) && client.readTimeoutMillis != 0
119119 ) {
120- builder.header (
120+ builder.addHeader (
121121 " X-Stainless-Read-Timeout" ,
122122 Duration .ofMillis(client.readTimeoutMillis.toLong()).seconds.toString(),
123123 )
124124 }
125125 if (! headers.names().contains(" X-Stainless-Timeout" ) && client.callTimeoutMillis != 0 ) {
126- builder.header (
126+ builder.addHeader (
127127 " X-Stainless-Timeout" ,
128128 Duration .ofMillis(client.callTimeoutMillis.toLong()).seconds.toString(),
129129 )
You can’t perform that action at this time.
0 commit comments