At Fri, 13 Sep 2002 23:11:36 +0900,
Kazuhiro NISHIYAMA wrote:
> http://www.ietf.org/rfc/rfc2616.txt
> 3 Protocol Parameters
> 3.1 HTTP Version
> | The version of an HTTP message is indicated by an HTTP-Version field
> | in the first line of the message.
> |
> | HTTP-Version = "HTTP" "/" 1*DIGIT "." 1*DIGIT
> |
> | Note that the major and minor numbers MUST be treated as separate
> | integers and that each MAY be incremented higher than a single digit.
> | Thus, HTTP/2.4 is a lower version than HTTP/2.13, which in turn is
> | lower than HTTP/12.3. Leading zeros MUST be ignored by recipients and
> | MUST NOT be sent.
>
> HTTP/2.4 < HTTP/2.13 や HTTP/1.01 == HTTP/1.1 < HTTP/1.02 と
> なるべきなので、Floatでは扱えないです。
これっておいらもずいぶん前にゆった気がする(気のせいかも)。
> http://www.ietf.org/rfc/rfc2145.txt
> 2.3 Which version number to send in a message
> | at least conditionally compliant. A server MAY send a 505 (HTTP
> | Version Not Supported) response if cannot send a response using the
> | major version used in the client's request.
>
> HTTP/2.0 などでは 505 を返すべきです。
それは違うと思う。もうちょっと前から引用すると、
An HTTP server SHOULD send a response version equal to the highest
version for which the server is at least conditionally compliant, and
whose major version is less than or equal to the one received in the
request. An HTTP server MUST NOT send a version for which it is not
at least conditionally compliant. A server MAY send a 505 (HTTP
Version Not Supported) response if cannot send a response using the
major version used in the client's request.
# HTTP サーバは、そのサーバが少なくとも条件つき適合しているもののう
# ち、リクエストで受け取ったバージョンと同じか低いメイジャーバージョ
# ンのなかで最高のレスポンスバージョンを送るべきである。HTTP サーバ
# は少なくとも条件つき適合していないバージョンを送ってはならない。
# クライアントのリクエストで使われているのと同じメイジャーバージョ
# ンを返せないときはHTTPサーバは505を返しても良い。
なので、2.0 に対して 1.0 や 1.1 を返すのは問題ありません。
-- Gotoken