mirror of
https://github.com/aljazceru/njump.git
synced 2026-02-21 14:04:25 +01:00
use naked host when x-forwarded-host isn't present.
This commit is contained in:
@@ -48,6 +48,10 @@ func renderEvent(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
host := r.Header.Get("X-Forwarded-Host")
|
||||
if host == "" {
|
||||
host = r.Host
|
||||
}
|
||||
|
||||
style := getPreviewStyle(r)
|
||||
|
||||
data, err := grabData(r.Context(), code, false)
|
||||
|
||||
Reference in New Issue
Block a user