ankitpokhrel / ankitpokhrel/tus-php

Client implementation overly restrictive on HEAD requests

Aperta
#455 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
1.5k
Fork
220
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

> **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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.