-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
333 - Fixed the logic for setting the custom headers in case of POST …
…and GET requests - for GET it will put the custom headers in the HTTP response headers - for POST it will put the custom headers in the response body - the setCustomHeaders was moved out of component.js to get-component.js under the name filterCustomHeaders. It's because in case of POST request the code path is different and goes to component(s).js instead of component.js. Now we do the filtering in one and the same place. - fixed a bug where we used to not take into account the custom headers in case of a unrendered component. For this reason the actual setting of response headers was moved from line 205 up to line 175. - fixed the registry acceptance tests. In their former variant when the GET tests passes they were used to leave the customHeadersToSkipOnWeakVersion settings so the POST tests were starting directly with this setting on. That's why new before/after sections were defined to reinitialize the registry before the tests and then recover it after them.
- Loading branch information
1 parent
8c4d71f
commit b2f17e4
Showing
4 changed files
with
177 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.