summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorcallum <none@none>2009-12-01 11:47:38 -0800
committercallum <none@none>2009-12-01 11:47:38 -0800
commit55f4ad3dc8a218d00dc6f34241b27be2fac5a23b (patch)
treefd1163337b30e040d279d4e432424005e99b3dfb /indra/newview
parent6dd3f54924b57224298f6d76c766b403d165783f (diff)
Fix for "DEV-43581 - EXT-2901: [BSI] Can't access twitter pages directly via MoaP"
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewermedia.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp
index f2ddb0b1f1..608c5c2097 100644
--- a/indra/newview/llviewermedia.cpp
+++ b/indra/newview/llviewermedia.cpp
@@ -171,7 +171,16 @@ public:
else
if(status == 404)
{
- // Treat 404s like an html page.
+ // 404 is content not found - sites often have bespoke 404 pages so
+ // treat them like an html page.
+ completeAny(status, "text/html");
+ }
+ else
+ if(status == 406)
+ {
+ // 406 means the server sent something that we didn't indicate was acceptable
+ // Eventually we should send what we accept in the headers but for now,
+ // treat 406s like an html page.
completeAny(status, "text/html");
}
else