Skip to content
This repository was archived by the owner on May 1, 2018. It is now read-only.

homework#12

Open
arsen-bakhtishaiev wants to merge 9 commits into
denysxftr:masterfrom
arsen-bakhtishaiev:master
Open

homework#12
arsen-bakhtishaiev wants to merge 9 commits into
denysxftr:masterfrom
arsen-bakhtishaiev:master

Conversation

@arsen-bakhtishaiev
Copy link
Copy Markdown

No description provided.

@arsen-bakhtishaiev arsen-bakhtishaiev changed the title first_homework homework Nov 13, 2016
Copy link
Copy Markdown
Owner

@denysxftr denysxftr left a comment

Choose a reason for hiding this comment

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

looks good but not found page should has 404 status

Comment thread hw2/lib/router.rb Outdated

def find_route(env)
@routes[env['REQUEST_METHOD']].each {|path_pattern, value| return value if env['REQUEST_PATH'].match(path_pattern)}
return ->(env) { [200, {}, ['page not found']] }
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

not found page should has status 404

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Fixed

@arsen-bakhtishaiev
Copy link
Copy Markdown
Author

Fixed

@denysxftr
Copy link
Copy Markdown
Owner

looks good to me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants