Closed Bug 1420874 Opened 8 years ago Closed 7 years ago

service calls with format=json should show content on browser itself instead of opening in application

Categories

(Firefox :: File Handling, defect, P5)

57 Branch
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: ram, Unassigned)

Details

I am not able to see output of API with format=json in the browser, it tries to open in an application.
(In reply to Ram Dayal Vaishnav [:ramd] from comment #0) > I am not able to see output of API with format=json in the browser, it tries > to open in an application. I cannot make sense your report. What is "service" and "API"?
Flags: needinfo?(vaishnav.rd)
sorry for not providing more information.. I was talking about the URLs which return JSON data, something like https://jsonplaceholder.typicode.com/posts?format=json. I am not able to reproduce this issue now, but I came across one URL which was returning JSON data and instead of showing the data in browser, firefox was downloading the data as a file and asking me to open with an external application like notepad. Thanks, Ram
Flags: needinfo?(vaishnav.rd)
Component: Editor → File Handling
Product: Core → Firefox
Without the original example URL it's difficult to tell for sure, but it's quite likely that the server requested the browser to download the file using the "Content-Disposition" header, so the issue should be fixed on the server side. The URL provided in comment 2 seems to work as expected.
Status: NEW → RESOLVED
Closed: 7 years ago
Priority: -- → P5
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.