Open paxperscientiam opened 8 years ago
Hello, looks like you are using browser sync in proxy mode, does php work on localhost:8081?
Same here. I'm using browser-sync 2.18.13, npm 5.1.0 and node 8.0.0. I'm using the CLI:
browser-sync start --proxy 'https://localhost' --serveStatic 'src' --files 'src'
The reason for the download window is the wrong content-type returned by browser-sync's proxy:
Content-Type: text/html; charset=UTF-8
when requesting a .php
file.Content-Type: application/octet-stream
which causes the browser to open the download window.I would assume that the proxy just passes the content-type on. By the way: the other HTTP headers are also not correctly returned by the proxy.
Any resolution for this case? I am having the same issue two years later.
same issue with downloading php files. @stefanomonteiro did you find a resolution?
Issue details
I am running BrowserSync as a proxy server for local web servers. Attempting to follow a link to a webpage with a ".php" extension causes a download modal dialog.
Steps to reproduce/test case
Run the script
node live.js
(see below). Once site has loaded in browser, click link.Please specify which version of Browsersync, node and npm you're running
Affected platforms
Browsersync use-case
If CLI, please paste the entire command below
{cli command here}
for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync