зеркало из https://github.com/mozilla/pjs.git
Oops - left thse out of the diff for bug 78148 & friends. rs=darin
This commit is contained in:
Родитель
6db626aec5
Коммит
2b004772fc
|
@ -316,6 +316,11 @@ nsGopherChannel::GetContentType(char* *aContentType)
|
|||
{
|
||||
if (!aContentType) return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (!mContentType.IsEmpty()) {
|
||||
*aContentType = ToNewCString(mContentType);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
switch(mType) {
|
||||
case '0':
|
||||
*aContentType = nsCRT::strdup(TEXT_HTML);
|
||||
|
@ -376,9 +381,8 @@ nsGopherChannel::GetContentType(char* *aContentType)
|
|||
NS_IMETHODIMP
|
||||
nsGopherChannel::SetContentType(const char *aContentType)
|
||||
{
|
||||
//It doesn't make sense to set the content-type on this type
|
||||
// of channel...
|
||||
return NS_ERROR_FAILURE;
|
||||
mContentType.Assign(aContentType);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -103,9 +103,6 @@ nsGopherHandler::NewURI(const char *aSpec, nsIURI *aBaseURI,
|
|||
nsIURI **result) {
|
||||
nsresult rv;
|
||||
|
||||
// All gopher URLs are absolute by definition
|
||||
NS_ASSERTION(!aBaseURI, "base url passed into gopher protocol handler");
|
||||
|
||||
nsCOMPtr<nsIStandardURL> url;
|
||||
rv = nsComponentManager::CreateInstance(kStandardURLCID, nsnull,
|
||||
NS_GET_IID(nsIStandardURL),
|
||||
|
|
Загрузка…
Ссылка в новой задаче