Skip to content

Commit

Permalink
Merge pull request mrash#273 from DeforaNetworks/khorben/http-1.1
Browse files Browse the repository at this point in the history
Use HTTP/1.1 when communicating over HTTP
  • Loading branch information
mrash authored Aug 9, 2018
2 parents 71b8f22 + adada04 commit 6438771
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/http_resolve_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ try_url(struct url *url, fko_cli_options_t *options)
* to contacting whatismyip.org, but using a different URL).
*/
snprintf(http_buf, HTTP_MAX_REQUEST_LEN,
"GET %s HTTP/1.0\r\nUser-Agent: %s\r\nAccept: */*\r\n"
"GET %s HTTP/1.1\r\nUser-Agent: %s\r\nAccept: */*\r\n"
"Host: %s\r\nConnection: close\r\n\r\n",
url->path,
options->http_user_agent,
Expand Down
4 changes: 2 additions & 2 deletions client/spa_comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ send_spa_packet_http(const char *spa_data, const int sd_len,
if(options->http_proxy[0] == 0x0)
{
snprintf(http_buf, HTTP_MAX_REQUEST_LEN,
"GET /%s HTTP/1.0\r\nUser-Agent: %s\r\nAccept: */*\r\n"
"GET /%s HTTP/1.1\r\nUser-Agent: %s\r\nAccept: */*\r\n"
"Host: %s\r\nConnection: close\r\n\r\n",
spa_data_copy,
options->http_user_agent,
Expand Down Expand Up @@ -590,7 +590,7 @@ send_spa_packet_http(const char *spa_data, const int sd_len,
options->spa_dst_port = proxy_port;

snprintf(http_buf, HTTP_MAX_REQUEST_LEN,
"GET http://%s/%s HTTP/1.0\r\nUser-Agent: %s\r\nAccept: */*\r\n"
"GET http://%s/%s HTTP/1.1\r\nUser-Agent: %s\r\nAccept: */*\r\n"
"Host: %s\r\nConnection: close\r\n\r\n",
options->spa_server_str,
spa_data_copy,
Expand Down

0 comments on commit 6438771

Please sign in to comment.