Some browsers will prefetch content. For example, with Chrome, as soon
as I paste that address into the address bar, I see a request to
http://localhost:1890/jobs/, and then a second one when I hit 'enter'.
The favicon.ico situation is unrelated; that resource is served by a
different handler.
On Fri, May 17, 2013 at 11:02 AM, <
hbel...@gmail.com> wrote:
> Hello Golang-nuts
>
> I'am developping a simple web application using GO like this
>
> http.HandleFunc("/jobs/", handleJobs)
>
> http.Handle("/", http.FileServer(http.Dir("tpldir")))
>
> http.ListenAndServe(":1890", nil)
>
>
> In my handleJobs function I print a simple text.
>
> When I put this url localhost:1890/jobs in my browser, the simple text is
> printed twice!!
>
> Please do you have an idea why ?
> Thanks.
>
>
> --
> 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.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
matt kane
twitter: the_real_mkb / nynexrepublic
http://hydrogenproject.com