Skip to content

Commit

Permalink
Use relative URL for the 404 image (#1943)
Browse files Browse the repository at this point in the history
We already do for the 500 image, see
238eede

Close #1939
  • Loading branch information
dentarg committed Sep 1, 2023
1 parent ecee206 commit 9c08af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,7 @@ class #{self.class}
</head>
<body>
<h2>Sinatra doesn’t know this ditty.</h2>
<img src='#{uri '/__sinatra__/404.png'}'>
<img src='#{request.script_name}/__sinatra__/404.png'>
<div id="c">
Try this:
<pre>#{Rack::Utils.escape_html(code)}</pre>
Expand Down

0 comments on commit 9c08af4

Please sign in to comment.