Commit suggestion.
Co-authored-by: Jingyu Zhou <jingyuzhou@gmail.com>
This commit is contained in:
parent
13b2b455b1
commit
9190fffbb6
|
@ -188,7 +188,7 @@ Reference<S3BlobStoreEndpoint> S3BlobStoreEndpoint::fromString(const std::string
|
||||||
StringRef proxyRef(proxy.get());
|
StringRef proxyRef(proxy.get());
|
||||||
if (proxy.get().find("://") != std::string::npos) {
|
if (proxy.get().find("://") != std::string::npos) {
|
||||||
StringRef proxyPrefix = proxyRef.eat("://");
|
StringRef proxyPrefix = proxyRef.eat("://");
|
||||||
if (proxyPrefix != LiteralStringRef("http")) {
|
if (proxyPrefix != "http"_sr) {
|
||||||
throw format("Invalid proxy URL prefix '%s'. Either don't use a prefix, or use http://",
|
throw format("Invalid proxy URL prefix '%s'. Either don't use a prefix, or use http://",
|
||||||
proxyPrefix.toString().c_str());
|
proxyPrefix.toString().c_str());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue