Commit suggestion.

Co-authored-by: Jingyu Zhou <jingyuzhou@gmail.com>
This commit is contained in:
Renxuan Wang 2022-05-02 21:34:33 -07:00 committed by Jingyu Zhou
parent 13b2b455b1
commit 9190fffbb6
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ Reference<S3BlobStoreEndpoint> S3BlobStoreEndpoint::fromString(const std::string
StringRef proxyRef(proxy.get());
if (proxy.get().find("://") != std::string::npos) {
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://",
proxyPrefix.toString().c_str());
}