Skip to content
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.

Update README.md #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update README.md #36

wants to merge 1 commit into from

Conversation

fuzhli
Copy link

@fuzhli fuzhli commented Aug 18, 2018

Since the source code not strip the blank chars, if we use "Host: www.example.com", it will use " www.example.com" as the key to find the app, finally, it will report a error:

$http :23456 'Host: www.example.com'
HTTP/1.1 404 Not Found
Content-Length: 30
Content-Type: text/plain; charset=utf-8
Date: Sat, 18 Aug 2018 07:46:17 GMT
Server: fasthttp

app www.example.com not exist

So, I just use the easiest way to fix this issue.

Please discribe what have done by this pull request in short:

Since the source code not strip the blank chars, if we use "Host: www.example.com", it will use " www.example.com" as the key to find the app, finally, it will report a error:

$http :23456 'Host: www.example.com'
HTTP/1.1 404 Not Found
Content-Length: 30
Content-Type: text/plain; charset=utf-8
Date: Sat, 18 Aug 2018 07:46:17 GMT
Server: fasthttp

app  www.example.com not exist


So, I just use the easiest way to fix this issue.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant