Skip to content

Commit 0a0fb52

Browse files
committed
s/etag/eTag
1 parent ae62d26 commit 0a0fb52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/kotlin/com/coder/gateway/cli/CoderCLIManager.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy