Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[BUG] https/http issue with unpkg.com

Aperta
#697 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, python
Ambito
frontend

Direzione di ricerca

Inizia in core.py, nella definizione di Script di htmxsrc, e riproduci il reindirizzamento con curl -v verso l'URL corrente. Aggiorna il riferimento alla dipendenza in base all'osservazione del collegamento diretto dell'issue, quindi verifica che la richiesta risultante non venga più reindirizzata da HTTPS a HTTP; la richiesta più ampia di self-hosting non specifica alcun file né criteri di accettazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

In core.py is
htmxsrc = Script(src="https://unpkg.com/htmx.org@next/dist/htmx.min.js")

however, unpkg.com does a redirect via http, which causes this request to be blocked in some browsers;(

curl -v "https://unpkg.com/htmx.org@next/dist/htmx.min.js"
* Host unpkg.com:443 was resolved.
* IPv6: (none)
* IPv4: 104.17.247.203, 104.17.245.203, 104.17.248.203, 104.17.249.203, 104.17.246.203
*   Trying 104.17.247.203:443...
* Connected to unpkg.com (104.17.247.203) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256 / [blank] / UNDEF
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=unpkg.com
*  start date: Mar 20 17:47:13 2025 GMT
*  expire date: Jun 18 18:47:11 2025 GMT
*  subjectAltName: host "unpkg.com" matched cert's "unpkg.com"
*  issuer: C=US; O=Google Trust Services; CN=WE1
*  SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://unpkg.com/htmx.org@next/dist/htmx.min.js
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: unpkg.com]
* [HTTP/2] [1] [:path: /htmx.org@next/dist/htmx.min.js]
* [HTTP/2] [1] [user-agent: curl/8.7.1]
* [HTTP/2] [1] [accept: */*]
> GET /htmx.org@next/dist/htmx.min.js HTTP/2
> Host: unpkg.com
> User-Agent: curl/8.7.1
> Accept: */*
>
* Request completely sent off
< HTTP/2 302
< date: Mon, 31 Mar 2025 09:58:16 GMT
< content-type: text/plain;charset=UTF-8
< location: http://unpkg.com/[email protected]/dist/htmx.min.js
< access-control-allow-origin: *
< cross-origin-resource-policy: cross-origin
< via: 1.1 fly.io, 1.1 fly.io
< fly-request-id: 01JQNQ9MJX3ATEA3675BNPX8Q0-waw
< cf-cache-status: STALE
< age: 3016
< strict-transport-security: max-age=31536000; includeSubDomains; preload
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 928efc600a11bf2d-WAW
< alt-svc: h3=":443"; ma=86400
<
* Connection #0 to host unpkg.com left intact
Redirecting to http://unpkg.com/[email protected]/dist/htmx.min.js%

Direct link "https://unpkg.com/[email protected]/dist/htmx.min.js" helps.
I have been observing many problems with unpkg.com, they load files very slowly.
I would appreciate the ability to serve all required dependencies myself.

Lingua principale
Jupyter Notebook
Stelle
7.1k
Fork
325
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AnswerDotAI/fasthtml

Tutte le issue di AnswerDotAI/fasthtml

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.