summaryrefslogtreecommitdiffstats
path: root/src/transport.rs
diff options
context:
space:
mode:
authorTom Fay <tom.fay@metaswitch.com>2021-01-09 15:46:47 +0000
committerGitHub <noreply@github.com>2021-01-09 10:46:47 -0500
commit1a0b5a9b7710f4d17d975c46e3e44bb9cb4c0837 (patch)
tree7a9707ce89239afee916377cb6184b76c2a77d02 /src/transport.rs
parentae0d4e8d2d4af36cc8959ef313bf1d0054b510f6 (diff)
Allow `Image::pull` to handle chunks with multiple JSON values (#240)
* add fn for stream post that returns json values use when pulling docker images, to fix bug where shiplift would error if multiple JSON values were returned in a single HTTP chunk * fix unnecessary lazy evaluation * add comments to stream post requests
Diffstat (limited to 'src/transport.rs')
-rw-r--r--src/transport.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport.rs b/src/transport.rs
index 5a48f62..3ad3b9e 100644
--- a/src/transport.rs
+++ b/src/transport.rs
@@ -122,7 +122,7 @@ impl Transport {
message: Self::get_error_message(&message_body).unwrap_or_else(|| {
status
.canonical_reason()
- .unwrap_or_else(|| "unknown error code")
+ .unwrap_or("unknown error code")
.to_owned()
}),
})