HelloZeroNet / HelloZeroNet/ZeroNet
Zeronet UI does not work without HTTP Accept header
- Lingua principale
- JavaScript
- Stelle
- 18.8k
- Fork
- 2.3k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Step 1: Please describe your environment
* ZeroNet version: 0.6.2
* Operating system: Linux
* Web browser: Firefox
* Tor status: enabled
* Opened port: yes
* Special configuration: I2P Tunnel
### Step 2: Describe the problem:
Zeronet Ui expects HTTP `Accept` header to contain at least `text/html`. I2P tunnels remove `Accept` header from the request, which does not allow to access Zeronet due to the following check:
https://github.com/HelloZeroNet/ZeroNet/blob/master/src/Ui/UiRequest.py#L283
#### Steps to reproduce:
1. Send HTTP request without `Accept` HTTP header to Zeronet UI address
#### Observed Results:
Zeronet returns HTTP 403 `Invalid Accept header to load wrapper` error.
#### Expected Results:
Zeronet ignores absence of HTTP `Accept` header and continue to work.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.