Back to index

lightning-sunbird  0.9+nobinonly
nsURIChecker.cpp File Reference
#include "nsURIChecker.h"
#include "nsIServiceManager.h"
#include "nsIAuthPrompt.h"
#include "nsIHttpChannel.h"
#include "nsNetUtil.h"
#include "nsString.h"

Go to the source code of this file.


static PRBool ServerIsNES3x (nsIHttpChannel *httpChannel)
 NS_IMPL_ISUPPORTS5 (nsURIChecker, nsIURIChecker, nsIRequest, nsIStreamListener, nsIChannelEventSink, nsIInterfaceRequestor) nsURIChecker

Function Documentation

Definition at line 63 of file nsURIChecker.cpp.

    : mStatus(NS_OK)
    , mIsPending(PR_FALSE)
    , mAllowHead(PR_TRUE)
static PRBool ServerIsNES3x ( nsIHttpChannel httpChannel) [static]

Definition at line 50 of file nsURIChecker.cpp.

    nsCAutoString server;
    httpChannel->GetResponseHeader(NS_LITERAL_CSTRING("Server"), server);
    // case sensitive string comparison is OK here.  the server string
    // is a well-known value, so we should not have to worry about it
    // being case-smashed or otherwise case-mutated.
    return StringBeginsWith(server,

Here is the call graph for this function:

Here is the caller graph for this function: