HandleFunc being called twice

后端 未结 3 1174
醉话见心
醉话见心 2020-11-29 12:36

I am following a simple web server example in Go.

I inserted a log statement so that the resulting code looks like below:

package main

         


        
3条回答
  •  再見小時候
    2020-11-29 12:54

    Just log the requests. You will realize that your browser also requests /favicon.ico.

    See https://en.wikipedia.org/wiki/Favicon for more information.

提交回复
热议问题