Skip to content

Fix directory handler regressions in 2.1.1#19

Merged
hueniverse merged 3 commits intohapijs:masterfrom
kanongil:permission-fixes
Jan 26, 2015
Merged

Fix directory handler regressions in 2.1.1#19
hueniverse merged 3 commits intohapijs:masterfrom
kanongil:permission-fixes

Conversation

@kanongil
Copy link
Copy Markdown
Contributor

No description provided.

Fixes incorrect redirect response for permissionless files and other file open errors
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are going to perform this check on every success case, why not move it up before the open operation which is more expensive?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I placed it where it is, since it will only be called for what would otherwise be a internal error. This way it won't have any impact on normal responses.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Comment should start with a Cap :-)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll remember that :-)

@hueniverse hueniverse self-assigned this Jan 26, 2015
@hueniverse hueniverse added the bug Bug or defect label Jan 26, 2015
@hueniverse hueniverse added this to the 2.1.2 milestone Jan 26, 2015
hueniverse pushed a commit that referenced this pull request Jan 26, 2015
Fix directory handler regressions in 2.1.1
@hueniverse hueniverse merged commit 2dd7eac into hapijs:master Jan 26, 2015
@lock
Copy link
Copy Markdown

lock bot commented Jan 9, 2020

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Bug or defect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants