aboutsummaryrefslogtreecommitdiff
path: root/src/test/script_tests.cpp
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2012-11-04 17:16:46 -0500
committerJeff Garzik <[email protected]>2012-11-04 17:16:46 -0500
commitfcf234fc08e445e2e5b4dfd1a35b10e929940244 (patch)
tree1acd830bfe00293fe3c59d6bcc2e7727d0a82068 /src/test/script_tests.cpp
parentRPC, cosmetic: push down ReadHTTPStatus() calls into ReadHTTP() callers (diff)
downloaddiscoin-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