Skip to content

Commit

Permalink
Preparing for 1.0.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
msjyoo committed Jan 20, 2015
1 parent ef0bc19 commit 03cf13e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ RequestParser [![Build Status](https://circleci.com/gh/sekjun9878/request-parser

RequestParser is a PHP library for parsing raw HTTP requests.

NOTE: No Stable Release yet!

This library is not a complete to-specification implementation of the HTTP/1.1 protocol (because doing that would be extremely difficult and unnecessary), but implements most of the spec and should be good enough for the purposes of a specific-purpose HTTP server such as an API server for a PHP CLI application.

If in doubt, try it and see if it works for your purpose! But don't come knocking on my door if you accidentally manage to blow up your back yard... somehow.
Expand Down
4 changes: 2 additions & 2 deletions src/RequestParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct()
/*
* Reads a chunk of a HTTP request from a client socket.
*/
public function addData($data) //TODO: Rename this to something a bit more appropriate, like queue to read or something.
public function addData($data)
{
if($data === false or $data == "") //Invalid empty HTTP Request
{
Expand Down Expand Up @@ -100,7 +100,7 @@ public function addData($data) //TODO: Rename this to something a bit more appro

// parse HTTP request line
$end_req = strpos($this->header_buf, "\r\n");
$requestLine = substr($this->header_buf, 0, $end_req);//TODO: ?
$requestLine = substr($this->header_buf, 0, $end_req);//RequestLine isn't really required here.
$req_arr = explode(' ', $requestLine, 3);

$this->request->method = $req_arr[0];
Expand Down

0 comments on commit 03cf13e

Please sign in to comment.