File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/kotlin/com/coder/gateway/cli Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -116,17 +116,17 @@ class CoderCLIManager(
116116 * Download the CLI from the deployment if necessary.
117117 */
118118 fun download (): Boolean {
119- val etag = getBinaryETag()
119+ val eTag = getBinaryETag()
120120 val conn = remoteBinaryURL.openConnection() as HttpURLConnection
121121 if (settings.headerCommand.isNotBlank()) {
122122 val headersFromHeaderCommand = getHeaders(deploymentURL, settings.headerCommand)
123123 for ((key, value) in headersFromHeaderCommand) {
124124 conn.setRequestProperty(key, value)
125125 }
126126 }
127- if (etag != null ) {
128- logger.info(" Found existing binary at $localBinaryPath ; calculated hash as $etag " )
129- conn.setRequestProperty(" If-None-Match" , " \" $etag \" " )
127+ if (eTag != null ) {
128+ logger.info(" Found existing binary at $localBinaryPath ; calculated hash as $eTag " )
129+ conn.setRequestProperty(" If-None-Match" , " \" $eTag \" " )
130130 }
131131 conn.setRequestProperty(" Accept-Encoding" , " gzip" )
132132 if (conn is HttpsURLConnection ) {
You can’t perform that action at this time.
0 commit comments