Fixed a bug for php header detection