Oops - left thse out of the diff for bug 78148 & friends. rs=darin

This commit is contained in:
bbaetz%cs.mcgill.ca 2001-10-03 01:25:19 +00:00
Родитель 6db626aec5
Коммит 2b004772fc
2 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -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),