HomePhabricator

RPC: HTTP server uses its own ReadHTTPRequestLine() rather than reusing…
fcf234fc08e4Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

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.

Details

Provenance
Jeff Garzik <jgarzik@exmulti.com>Authored on Nov 4 2012, 22:16
Jeff Garzik <jgarzik@redhat.com>Committed on Nov 4 2012, 22:16
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING2306dc4b760d: RPC, cosmetic: push down ReadHTTPStatus() calls into ReadHTTP() callers
Branches
Unknown
Tags
Unknown

Event Timeline