summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterurlentry.cpp
diff options
context:
space:
mode:
authormberezhnoy <mberezhnoy@productengine.com>2013-02-01 01:00:52 +0200
committermberezhnoy <mberezhnoy@productengine.com>2013-02-01 01:00:52 +0200
commit8fbc0aada88c6a3743f61dfc57018385a31802f0 (patch)
tree56888fe7f24736cce1980e08d349d20f84b814ed /indra/newview/llfloaterurlentry.cpp
parenta12200b91b0ca20dfff2df8aa71c6f53ac0603ee (diff)
parentd2a17e20ca889851406f22907df35b17f5030279 (diff)
merging
Diffstat (limited to 'indra/newview/llfloaterurlentry.cpp')
-rw-r--r--indra/newview/llfloaterurlentry.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llfloaterurlentry.cpp b/indra/newview/llfloaterurlentry.cpp
index 151cd2a1cd..e85d849c9a 100644
--- a/indra/newview/llfloaterurlentry.cpp
+++ b/indra/newview/llfloaterurlentry.cpp
@@ -219,7 +219,8 @@ void LLFloaterURLEntry::onBtnOK( void* userdata )
}
// Discover the MIME type only for "http" scheme.
- if(scheme == "http" || scheme == "https")
+ if(!media_url.empty() &&
+ (scheme == "http" || scheme == "https"))
{
LLHTTPClient::getHeaderOnly( media_url,
new LLMediaTypeResponder(self->getHandle()));