ankitpokhrel / ankitpokhrel/tus-php

Client implementation overly restrictive on HEAD requests

オープン
#455 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
1.5k
フォーク
220
PR マージ指標
30日以内にマージされた PR はありません

説明

> **Note:** Please report any security issues directly to hello [at] ankit.pl

**Describe the bug**
`sendHeadRequest` implementation in the Client only expects a 200-level status. The [spec](https://tus.io/protocols/resumable-upload#head) says a server SHOULD return 200 or 204, so the client should probably at least allow 204 statuses.

**To Reproduce**
Use the client to connect to a Tus server that returns a 204 status code on HEAD requests.

**Expected behavior**
Head request is treated according to the specification and uploading continues as expected.

I've prepared #454 as a fix.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。