Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Browser-Sync to newer version #340

Open
bexter89 opened this issue Aug 21, 2023 · 5 comments
Open

Bump Browser-Sync to newer version #340

bexter89 opened this issue Aug 21, 2023 · 5 comments

Comments

@bexter89
Copy link

should resolve an issue where index.min.js is missing from a few versions

should resolve some console errors 🤞

@mwcz
Copy link
Contributor

mwcz commented Aug 21, 2023

I'd love to, but all newer browser-sync versions break (nearly) all spandx tests because it begins returning Content-Length and Transfer-Encoding: chunked in the same response, when those headers are mutually exclusive. See #282

It's possible that browser-sync isn't completely at fault for this, and one of spandx's middleware functions is adding one or the other errant header. @aditiohri and I spent an unreasonable amount of time trying to track down where both headers came from and came up empty (setting breakpoints inside nodejs stdlib functions would be a really nice feature 🤦). If someone is able to figure out where both headers are coming from, it might reveal a better solution than pinning an old version of browser-sync.

@bexter89
Copy link
Author

It looks like that version of Jasmine is following an old RFC; see this more recent RFC: https://www.rfc-editor.org/rfc/rfc7230.html

i'm going to experiment with updating jasmine and browser-sync and see if we cant get them to be friendly

@mwcz
Copy link
Contributor

mwcz commented Aug 26, 2023

That also forbids the two headers coexisting.

A sender MUST NOT send a Content-Length header field in any message that contains a Transfer-Encoding header field.

@mwcz
Copy link
Contributor

mwcz commented Aug 27, 2023

I'm also not sure Jasmine was involved. It doesn't know anything about HTTP. AFAIK it was the HTTP clients (I tried multiple) which were throwing when the response came back with both headers.

@bexter89
Copy link
Author

bexter89 commented Aug 27, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants