Ops, some leftover crap.
This commit is contained in:
parent
6abeb2c101
commit
b5ae4aeda6
|
@ -34,7 +34,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -200,7 +199,7 @@ func (this *Document) LoadUriClient(uri string, client *http.Client, charset Cha
|
||||||
|
|
||||||
req, err := http.NewRequest("GET", uri, nil)
|
req, err := http.NewRequest("GET", uri, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln(err) // TODO
|
return
|
||||||
}
|
}
|
||||||
if len(this.useragent) > 1 {
|
if len(this.useragent) > 1 {
|
||||||
req.Header.Set("User-Agent", this.useragent)
|
req.Header.Set("User-Agent", this.useragent)
|
||||||
|
|
Loading…
Reference in New Issue