Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Update server.php #50

Merged
merged 1 commit into from
May 12, 2015
Merged

Update server.php #50

merged 1 commit into from
May 12, 2015

Conversation

michaeldhopkins
Copy link
Contributor

This change allows requests for comments.json with a timestamp param at the end, which is how React requests it.

This change allows requests for comments.json with a timestamp param at the end, which is how React requests it.
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

@michaeldhopkins
Copy link
Contributor Author

I have now signed the CLA.

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@@ -21,7 +21,7 @@ function routeRequest()
case '/':
echo file_get_contents('./public/index.html');
break;
case '/comments.json':
case (preg_match('/comments.json*/', $_SERVER["REQUEST_URI"]) ? true : false):
Copy link
Member

Choose a reason for hiding this comment

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

Oy that's a hacky case. Let's just drop the whole switch and just use if

@zpao
Copy link
Member

zpao commented May 12, 2015

Just going to take as is and change myself - somebody else hit this today and I'd rather get it all resolved sooner rather than later.

Thanks again for filing and getting this going!

zpao added a commit that referenced this pull request May 12, 2015
@zpao zpao merged commit b81c6e7 into reactjs:master May 12, 2015
@michaeldhopkins
Copy link
Contributor Author

Thanks, Paul!

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.

3 participants