spasche/openinbrowser

View As + mime type should alter Accept header

Opened this issue · 1 comments

That would provide the ability to "content negotiate" a URL--asking it for application/json, etc.

Thanks for building this!

I think that could be confusing: when the "Opening ..." dialog shows, the user might expect that the content she wants to display in the browser is what the server responded to the active request.

As of now, the extension requests the content again, but that's an ugly workaround for removing the Content-Disposition header.

And I'm not found of adding an option for this in the UI, it seems to be an infrequent use case. I think it would be more appropriate to use a specific tool for this task (REST debugger, ...).