Jaybee-/php-tftpserver — comment on commit 29f03ae049441514296228f02eb15daf1cc093cc
File:  line 0
By Jaybee-:

Ok, after some research and another commit... :)

php handles redirects. In the case of a redirect, there will be multiple HTTP/$version $httpnumericresult $httpresultmessage lines scattered throughout $http_response_header. The relevant one seems to be always the last one. Since, in the future, we may decide to add other valid codes (various values in the 200 range at least), I've made it an array - I've populated it with 200 at the moment. Others may be added later.

I did the explode instead of preg_match because it was easier. :)