referenced the raw request when setting next#151
Conversation
|
@travi Thanks for the change and sorry for being so unresponsive. Can you change this so there is a flag in the config which turns this feature on? |
|
I think that makes sense, but I have a couple small questions before I dive back in:
|
|
@mrlannigan what would it take to move this forward? I'm still leveraging my own fork in order to work around this limitation for my own projects, but would love for there to be a way to use this from this project directly. do you support the solution in its current form, or do think there are changes necessary? |
|
Hello @travi, Thank you first off for your contribution! I would like to keep this functionality non-breaking, if possible. This is mainly because I feel like the difference between it being raw or not, could end up being a subtle one. If you think I'm crazy tell me. 😉 As far as the config, how would you feel about possibly extending (I added This would mean that |
|
i think the object approach makes sense. i do think the raw approach is actually what is truly needed in most cases, but i'm not deep enough into other projects to say that with enough confidence to try to sway you (especially since that would end up being a breaking change). i looked at rebasing these changes against let me know if a new branch that is pre-v17 or |
|
@mrlannigan i'm hoping to get a chance to update this PR within the week, incorporating your suggestions. are you open to the idea of integrating to a pre-hapiv17 version first and then migrating to |
|
Sounds reasonable as long as we are able to get this change into current master as well. Branch created, |
|
great! i'll work on getting things working and updated to target that branch to start with. i'm on board for making sure we follow through to get this into master as well. i'll still need it once we do get our projects updated to hapi v17. |
|
first question comes immediately after rebasing my branch with the branch you created and installing the proper dependencies. when i run this is on node |
|
i think this should be good to go, behavior wise. i added details to the readme about the change as well. let me know if there is anything about the contribution that you don't feel aligns to the existing style of the codebase. i'm happy to adjust. |
|
@mrlannigan any adjustments you'd like to see here? |
|
@mrlannigan i'd love to see this get merged so i can start on that follow up for hapi v17. Anything preventing this from moving forward? |
|
Version 7.1.0 released to npm |
|
thank you for getting this merged and published. i can try to get a PR for this behavior against hapi v17 soon. anything in particular that i need to pay specific attention to outside of the hapi api changes? |
fixes hapijs#150 by applying hapijs#151 to hapi v17
|
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
this would be a breaking change for anyone that uses
setUrl(), but does not want the original request to be wherenextis directed. i struggle to think of such a case, but you likely have better insight.resolves #150