Fix HTTP server errors when trying to do a HTTP redirect from components #289
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
It's to fix this issue when doing HTTP redirections:
It was not critical in the past (had this 2 years ago #144 (comment)), it was just logging things into the console. But since I upgraded some Vue dependencies the "simple log" is now something making the server crashes.
Note: my previous version of
vue-server-renderer
wasv2.6.11
and I tried upgrading tov2.6.14
. Don't know which change exactly breaks things... but it's fine with this PR 😄So to avoid being stuck in a previous version I did a little trick to always respect values that could be passed to the
res
object.Hope this helps even if the repo is no longer maintained.
In the meantime if you want to you it you can use a specific branch with some patches I made:
👍