fix typos and remove unused headers
This commit is contained in:
parent
0786312feb
commit
6baa965534
2 changed files with 2 additions and 19 deletions
|
@ -86,7 +86,7 @@ _this method only works on linux and macos, if you want to build the bot on wind
|
||||||
| HTTP_PROXY [(?)](#proxying) | http proxy (optional) | |
|
| HTTP_PROXY [(?)](#proxying) | http proxy (optional) | |
|
||||||
| HTTPS_PROXY [(?)](#proxying) | https proxy (optional) | |
|
| HTTPS_PROXY [(?)](#proxying) | https proxy (optional) | |
|
||||||
| NO_PROXY [(?)](#proxying) | no proxy domains (optional) | |
|
| NO_PROXY [(?)](#proxying) | no proxy domains (optional) | |
|
||||||
| EDGE_PROXY_URL [(?)](#proxying) | url of your edge proxy url (optional) | |
|
| EDGE_PROXY_URL [(?)](#proxying) | url of your edge proxy (optional) | |
|
||||||
| REPO_URL | project repository url | https://github.com/govdbot/govd |
|
| REPO_URL | project repository url | https://github.com/govdbot/govd |
|
||||||
| PROFILER_PORT | port for profiler http server (pprof) | 0 _(disabled)_ |
|
| PROFILER_PORT | port for profiler http server (pprof) | 0 _(disabled)_ |
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ _this method only works on linux and macos, if you want to build the bot on wind
|
||||||
# proxying
|
# proxying
|
||||||
there are two types of proxying available: http and edge.
|
there are two types of proxying available: http and edge.
|
||||||
- **http proxy**: this is a standard http proxy that can be used to route requests through a proxy server. you can set the `HTTP_PROXY` and `HTTPS_PROXY` environment variables to use this feature. (SOCKS5 is supported too)
|
- **http proxy**: this is a standard http proxy that can be used to route requests through a proxy server. you can set the `HTTP_PROXY` and `HTTPS_PROXY` environment variables to use this feature. (SOCKS5 is supported too)
|
||||||
- **edge proxy**: this is a custom proxy that is used to route requests through a specific url. you can set the `EDGE_PROXY_URL` environment variable to use this feature. this is useful for routing requests through a specific server or service. howver, this feature is not totally implemented yet.
|
- **edge proxy**: this is a custom proxy that is used to route requests through a specific url. you can set the `EDGE_PROXY_URL` environment variable to use this feature. this is useful for routing requests through a specific server or service. however, this feature is not totally implemented yet.
|
||||||
|
|
||||||
**note:** by settings `NO_PROXY` environment variable, you can specify domains that should not be proxied.
|
**note:** by settings `NO_PROXY` environment variable, you can specify domains that should not be proxied.
|
||||||
|
|
||||||
|
|
|
@ -27,23 +27,6 @@ const (
|
||||||
// to get the API key and timestamp
|
// to get the API key and timestamp
|
||||||
)
|
)
|
||||||
|
|
||||||
var igHeaders = map[string]string{
|
|
||||||
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
|
|
||||||
"Accept-Language": "en-GB,en;q=0.9",
|
|
||||||
"Cache-Control": "max-age=0",
|
|
||||||
"Dnt": "1",
|
|
||||||
"Priority": "u=0, i",
|
|
||||||
"Sec-Ch-Ua": `Chromium";v="124", "Google Chrome";v="124", "Not-A.Brand";v="99`,
|
|
||||||
"Sec-Ch-Ua-Mobile": "?0",
|
|
||||||
"Sec-Ch-Ua-Platform": "macOS",
|
|
||||||
"Sec-Fetch-Dest": "document",
|
|
||||||
"Sec-Fetch-Mode": "navigate",
|
|
||||||
"Sec-Fetch-Site": "none",
|
|
||||||
"Sec-Fetch-User": "?1",
|
|
||||||
"Upgrade-Insecure-Requests": "1",
|
|
||||||
"User-Agent": util.ChromeUA,
|
|
||||||
}
|
|
||||||
|
|
||||||
var instagramHost = []string{
|
var instagramHost = []string{
|
||||||
"instagram.com",
|
"instagram.com",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue