Skip to content

Commit

Permalink
Make http_request() function use HEAD if user does not request data t…
Browse files Browse the repository at this point in the history
…o be stored.
  • Loading branch information
andoma committed Apr 30, 2011
1 parent 41e72ea commit 2f7461e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fileaccess/fa_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -1963,7 +1963,7 @@ http_request(const char *url, const char **arguments,

htsbuf_queue_init(&q, 0);

htsbuf_qprintf(&q, "%s %s", method ?: postdata ? "POST": "GET", hf->hf_path);
htsbuf_qprintf(&q, "%s %s", method ?: postdata ? "POST": (result ? "GET" : "HEAD"), hf->hf_path);

if(arguments != NULL) {
char prefix = '?';
Expand Down

0 comments on commit 2f7461e

Please sign in to comment.