pages-server/server
Gusted 15916444e1 Fix panic in formatting not found message (#276)
Fix panic that was found in the logs, `targetOpt` is `nil`:

http2: panic serving 10.0.3.1:[...]: runtime error: invalid memory address or nil pointer dereference
net/http.(*http2serverConn).runHandler.func1()
        /usr/local/go/src/net/http/h2_bundle.go:6104 +0x145
panic({0x19c6820, 0x2d66db0})
        /usr/local/go/src/runtime/panic.go:884 +0x213
codeberg.org/codeberg/pages/server/handler.handleSubDomain({{0x2008c68, 0xc00047df90}, 0x2, {0x0, 0x0}, {0xc0fe3ef800, 0x55, 0x1f4}, {0xc00047dfa0, 0x1, ...}, ...}, ...)
        /woodpecker/src/codeberg.org/Codeberg/pages-server/server/handler/handler_sub_domain.go:59 +0x5e0

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/276
Reviewed-by: crapStone <codeberg@crapstone.dev>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2024-01-18 14:31:46 +00:00
..
cache make mem cache an interface and inject 2021-12-05 14:48:51 +01:00
certificates Handle Relative Symlinks (#205) 2023-03-11 05:07:17 +00:00
context Security Fix: clean paths correctly to avoid circumvention of BlacklistedPaths 2023-08-27 10:13:15 +02:00
database Fix certificate renewal (#209) 2023-03-20 22:57:26 +00:00
dns Allow to define default branches (#125) 2023-02-14 03:03:00 +00:00
gitea let gitea client send user-agent with version (#258) 2023-11-15 15:25:14 +00:00
handler Fix panic in formatting not found message (#276) 2024-01-18 14:31:46 +00:00
upstream add go templating engine for error page and make errors more clear (#260) 2023-11-16 17:11:35 +00:00
utils Security Fix: clean paths correctly to avoid circumvention of BlacklistedPaths 2023-08-27 10:13:15 +02:00
version Release via CI (#94) 2022-06-14 20:35:11 +02:00