Skip to content
This repository was archived by the owner on Sep 29, 2022. It is now read-only.

修复了HttpRequest.cs中HttpRequest(Stream stream) GET请求的参数获取错误#19

Open
zk47 wants to merge 1 commit intoqinyuanpei:masterfrom
zk47:master
Open

修复了HttpRequest.cs中HttpRequest(Stream stream) GET请求的参数获取错误#19
zk47 wants to merge 1 commit intoqinyuanpei:masterfrom
zk47:master

Conversation

@zk47
Copy link

@zk47 zk47 commented Nov 3, 2018

HttpRequest.cs文件的第68、69行,处理GET的地址中的参数时,不应该用URL变量,应该用first[1]。否则无法解析出参数。

@qinyuanpei
Copy link
Owner

Get请求的参数本来就是附加在URL上的啊?

@zk47
Copy link
Author

zk47 commented Nov 13, 2018

Get请求的参数本来就是附加在URL上的啊?

这里是不是要读取url上的参数的?

@qinyuanpei
Copy link
Owner

难道我不是从URL上取得的吗?为什么要从first[1]上来取值呢?

@zk47
Copy link
Author

zk47 commented Nov 19, 2018

举个例子,有个请求是http://localhost:80/?name=Yanghui&height=45
代码里url取出来是http://localhost:80/
参数没取出来,原来代码里用取出来的url=http://localhost:80/已经没有 参数信息了,后面取参数不得用first[1]来获取么?

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.

3 participants