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

Add skipIISCustomErrors switch to iisnode #39

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mparq
Copy link

@mparq mparq commented May 3, 2017

Hello,

My team recently switched to using your fork of iisnode since it seems to be still maintained. I had to merge my changes for skipping IIS custom errors into your fork so I figured I'd send a PR while I was at it.

IHTTPResponse::SetStatus needs to be called with fTrySkipCustomErrors flag set in
order for iisnode to bypass IIS custom errors when errorMode="Auto"

Add opt-in skipIISCustomErrors switch to iisnode configuration.

Users can opt into the fTrySkipCustomErrors flag behavior with skipIISCustomErrors="true".
If this option is not specified, then the default behavior will match the previous behavior before this change.

skipIISCustomErrors behavior was left out of SendEmptyResponse

Internal iisnode errors should probably not set fTrySkipCustomErrors since these are just empty status responses.
Let IIS capture and replace these responses with more detailed messages depending on the custom error mode.

For more info, see my comment on tjanczuk#476.

Michael Parque added 4 commits May 3, 2017 14:44
IHTTPResponse::SetStatus needs to be called with fTrySkipCustomErrors flag set in
order for iisnode to bypass IIS custom errors when errorMode="Auto"

Add opt-in skipIISCustomErrors switch to iisnode configuration.

Users can opt into the fTrySkipCustomErrors flag behavior with skipIISCustomErrors="true".
If this option is not specified, then the default behavior will match the previous behavior before this change.

skipIISCustomErrors behavior was left out of SendEmptyResponse

Internal iisnode errors should probably not set fTrySkipCustomErrors since these are just empty status responses.
Let IIS capture and replace these responses with more detailed messages depending on the custom error mode.
@rupesh1
Copy link

rupesh1 commented Nov 23, 2017

@mparq This looks great! I'd be really keen to see this merged.

Would you mind signing the CLA?

(I'm assuming that's the only blocker to get this merged, maybe @rramachand21 could comment on that)

@mparq
Copy link
Author

mparq commented Jan 24, 2018

Hi @rupesh1 ,

Sorry, I stopped checking my github notifications a while ago last year so I just came across this comment. CLA has been signed! I'd love to see this merged in, too. Thanks!

@yarick123
Copy link

Hello,

I find the functionality very important.

@Azure could you please merge this pull request into the main stream or comment, why it cannot be done?

Best regards

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

Successfully merging this pull request may close these issues.

3 participants