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

Not able to change Content-Type #2647

Closed
PabloBarrachina opened this issue Dec 19, 2020 · 2 comments
Closed

Not able to change Content-Type #2647

PabloBarrachina opened this issue Dec 19, 2020 · 2 comments
Labels
Area: Workflow For anything dealing with Mithril's internal tooling, including the mocks and bundler, but not ospec Type: Bug For bugs and any other unexpected breakage

Comments

@PabloBarrachina
Copy link

if (assumeJSON && body != null && !hasHeader(args, /^content0-type1$/i)) {

¿Is this a typo?

@pygy
Copy link
Member

pygy commented Jan 16, 2021

Great catch @PabloBarrachina this looks like a bundler bug, it is incredibly fickle (it is not using a proper parser, just a RegExp-based approximation of one).

@pygy pygy added Area: Core For anything dealing with Mithril core itself Type: Breaking Change For any feature request or suggestion that could reasonably break existing code Type: Bug For bugs and any other unexpected breakage Area: Workflow For anything dealing with Mithril's internal tooling, including the mocks and bundler, but not ospec and removed Type: Breaking Change For any feature request or suggestion that could reasonably break existing code Area: Core For anything dealing with Mithril core itself labels Jan 16, 2021
@pygy
Copy link
Member

pygy commented Jan 16, 2021

I dread these bundler bugs...

I'd be tempted to rename the problematic variables, or to use the RegExp constructor to work around it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Workflow For anything dealing with Mithril's internal tooling, including the mocks and bundler, but not ospec Type: Bug For bugs and any other unexpected breakage
Projects
Status: Closed
Development

No branches or pull requests

2 participants