|
|
@@ -766,7 +766,7 @@ OutputStream* URL::createOutputStream() const |
|
|
|
bool URL::readEntireBinaryStream (MemoryBlock& destData, bool usePostCommand) const
|
|
|
|
{
|
|
|
|
const std::unique_ptr<InputStream> in (isLocalFile() ? getLocalFile().createInputStream()
|
|
|
|
: static_cast<InputStream*> (createInputStream (usePostCommand)));
|
|
|
|
: createInputStream (usePostCommand));
|
|
|
|
|
|
|
|
if (in != nullptr)
|
|
|
|
{
|
|
|
@@ -780,7 +780,7 @@ bool URL::readEntireBinaryStream (MemoryBlock& destData, bool usePostCommand) co |
|
|
|
String URL::readEntireTextStream (bool usePostCommand) const
|
|
|
|
{
|
|
|
|
const std::unique_ptr<InputStream> in (isLocalFile() ? getLocalFile().createInputStream()
|
|
|
|
: static_cast<InputStream*> (createInputStream (usePostCommand)));
|
|
|
|
: createInputStream (usePostCommand));
|
|
|
|
|
|
|
|
if (in != nullptr)
|
|
|
|
return in->readEntireStreamAsString();
|
|
|
|