2012-07-09 4 views

답변

3

bytes-unit하는 누락 : I는 mirrors.kernel.org로부터 2 바이트의 부분 반응 (I는 I는 1 바이트 응답을 얻을 수 있음을 확인)을 수득 할 수 있었다 . 여기에서 생산 규칙은 Content-Range위한 것입니다 :

bytes 0-1/12818084 
  • 0첫번째 바이트-POS입니다 :
    Content-Range = "Content-Range" ":" content-range-spec 
    
        content-range-spec  = byte-content-range-spec 
        byte-content-range-spec = bytes-unit SP 
              byte-range-resp-spec "/" 
              (instance-length | "*") 
    
        byte-range-resp-spec = (first-byte-pos "-" last-byte-pos) 
                | "*" 
        instance-length   = 1*DIGIT 
    

    그러나이 유효 할 것bytes으로 바이트 단위로

  • 1
  • 12818084는 인스턴스 길이
이다 마지막 바이트이다 POS
2

이 있어야한다 :

Content-Range: bytes 0-1/12818084 

the RFC에 따르면,이 법률이다. Content-Range: bytes a-b/c, , < = bc> b 인 경우 최소 한도는 없습니다.

실례 :

A 2 byte partial response, much like the one in the question

관련 문제