Hi,
your program never defines and registers a handler for the browser to get the
PNG file from the server. You essentially only serve test2.html. If you take a look at
the developer console on the browser (network tab) and reload the page you'll
see that "blank grey.png" will be the same size as test2.html. That's because
your server always returns test2.html for any request... registering "/" is
essentially a catch-all if no other routes are defined.
Chris
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
golang-nuts...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/8e262895-95de-4bdf-ab60-0f168ce7455cn%40googlegroups.com.
>
--
Nothing to see here. Move along.