lingochamp / lingochamp/FileDownloader

资源放在阿里云中,当range请求的响应返回的状态码是200,依旧添加if-match的header,会导致412

Open
#1,035 3 comments 0 reactions 1 assignee View on GitHub

@rantianhua is already working on this.

Since May 23, 2018.

question
Dominant language
Java
Stars
11.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

b1811052-f961-452f-a5a1-8fd6ba6236b6
5904adea-6950-4090-ac40-75213fbd7a14
第一次请求的响应:
HTTP/1.1 200 OK
Server: openresty/1.13.6.1
Date: Wed, 23 May 2018 08:18:26 GMT
Content-Type: text/plain; charset=utf8
Last-Modified: Thu, 10 May 2018 12:30:58 GMT
Transfer-Encoding: chunked
Connection: keep-alive
cached: HIT
ETag: W/"5af43b82-56f"
Content-Encoding: gzip

第二次请求的头部:
If-Match: W/"5af43b82-56f"
Range: bytes=0-
User-Agent: FileDownloader/1.7.4
Host: 192.168.3.176
Connection: Keep-Alive

请求响应:
HTTP/1.1 412 Precondition Failed
Server: openresty/1.13.6.1
Date: Wed, 23 May 2018 08:18:26 GMT
Content-Type: text/html; charset=utf8
Content-Length: 195
Connection: keep-alive

<title>412 Precondition Failed</title>

412 Precondition Failed


openresty/1.13.6.1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.