Project

General

Profile

Anomalie #4943

myip.chapril.org ne s'ouvre pas dans le navigateur

Added by Christian P. Momon about 3 years ago. Updated about 3 years ago.

Status:
Fermé
Priority:
Faible
Assignee:
Christian P. Momon
Category:
-
Start date:
11/29/2020
Due date:
% Done:

0%

Estimated time:

Description

Lorsqu'on interroge myip.chapril.org dans un navigateur, la réponse est une proposition de téléchargement d'un fichier.

Le résultat attendu est l'affichage d'un contenu texte.

Demande : faire en sorte que l'affichage se fasse directement par le navigateur.

History

#1

Updated by Christian P. Momon about 3 years ago

Le nginx de felicette a le Content-Type défini 2 fois dans l'entête de la réponse HTTP :

=(^-^)=root@felicette:/etc/nginx# curl -i -L -4  http://localhost
HTTP/1.1 200 OK
Server: nginx/1.14.2
Date: Sun, 29 Nov 2020 04:23:27 GMT
Content-Type: application/octet-stream
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain

Et bien sûr, c'est la mauvaise valeur qui est transmise au client final :

cpm@ocmstar (04:59:18) ~ 17 > curl -I -L -4 http://myip.chapril.org
HTTP/1.1 200 OK
Date: Sun, 29 Nov 2020 04:16:57 GMT
Server: nginx/1.14.2
Content-Type: application/octet-stream
Content-Length: 13

#2

Updated by Christian P. Momon about 3 years ago

  • Status changed from Nouveau to Résolu

Correction faite dans /etc/nginx/sites-enabled/myip.chapril.org :

     location / {
-        add_header Content-Type text/plain;
+        default_type text/plain;
         return 200 $http_x_forwarded_for;
     }

#3

Updated by Quentin Gibeaux about 3 years ago

  • Status changed from Résolu to Fermé
#4

Updated by Christian P. Momon about 3 years ago

  • Target version changed from Backlog to Sprint 2020 novembre

Also available in: Atom PDF