mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1169613 - Use content type of synthesized response for JAR channel requests if available. Part 2: Set Content-Type for JAR Channel requests on Fetch API responses. r=nsm
This commit is contained in:
parent
8d66a7ccdc
commit
1cc9e5a64b
@ -684,6 +684,13 @@ FetchDriver::OnStartRequest(nsIRequest* aRequest,
|
|||||||
uint32_t responseStatus = 200;
|
uint32_t responseStatus = 200;
|
||||||
nsAutoCString statusText;
|
nsAutoCString statusText;
|
||||||
response = new InternalResponse(responseStatus, NS_LITERAL_CSTRING("OK"));
|
response = new InternalResponse(responseStatus, NS_LITERAL_CSTRING("OK"));
|
||||||
|
ErrorResult result;
|
||||||
|
nsAutoCString contentType;
|
||||||
|
jarChannel->GetContentType(contentType);
|
||||||
|
response->Headers()->Append(NS_LITERAL_CSTRING("content-type"),
|
||||||
|
contentType,
|
||||||
|
result);
|
||||||
|
MOZ_ASSERT(!result.Failed());
|
||||||
}
|
}
|
||||||
|
|
||||||
// We open a pipe so that we can immediately set the pipe's read end as the
|
// We open a pipe so that we can immediately set the pipe's read end as the
|
||||||
|
Loading…
Reference in New Issue
Block a user