diff options
| author | Jeff Garzik <[email protected]> | 2012-11-04 17:16:46 -0500 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-11-04 17:16:46 -0500 |
| commit | fcf234fc08e445e2e5b4dfd1a35b10e929940244 (patch) | |
| tree | 1acd830bfe00293fe3c59d6bcc2e7727d0a82068 /src/test/script_tests.cpp | |
| parent | RPC, cosmetic: push down ReadHTTPStatus() calls into ReadHTTP() callers (diff) | |
| download | discoin-fcf234fc08e445e2e5b4dfd1a35b10e929940244.tar.xz discoin-fcf234fc08e445e2e5b4dfd1a35b10e929940244.zip | |
RPC: HTTP server uses its own ReadHTTPRequestLine()
rather than reusing ReadHTTPStatus() from the client mode.
The following additional HTTP request validations are added, both in line with
existing HTTP client practice:
1) HTTP method must be GET or POST. Most clients use POST, some
use GET. Either way, this continues to work.
2) HTTP URI must start with "/" character.
Normal URI is "/" (a 1-char string), so this is fine.
Diffstat (limited to 'src/test/script_tests.cpp')
0 files changed, 0 insertions, 0 deletions