summaryrefslogtreecommitdiffstats
path: root/src/net/tcp
diff options
context:
space:
mode:
authorMichael Brown2012-11-02 15:46:39 +0100
committerMichael Brown2012-11-02 15:46:39 +0100
commit4867085c0cd334004e8d67dff7bd53996f23ade6 (patch)
tree31f92c7844273c3b495c105a4c24d98dc54917ac /src/net/tcp
parent[build] Inhibit .eh_frame on newer gcc versions (diff)
downloadipxe-4867085c0cd334004e8d67dff7bd53996f23ade6.tar.gz
ipxe-4867085c0cd334004e8d67dff7bd53996f23ade6.tar.xz
ipxe-4867085c0cd334004e8d67dff7bd53996f23ade6.zip
[build] Include version number within only a single object file
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/tcp')
-rw-r--r--src/net/tcp/httpcore.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/tcp/httpcore.c b/src/net/tcp/httpcore.c
index 7f178cc8..bccb35f5 100644
--- a/src/net/tcp/httpcore.c
+++ b/src/net/tcp/httpcore.c
@@ -48,6 +48,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/md5.h>
#include <ipxe/blockdev.h>
#include <ipxe/acpi.h>
+#include <ipxe/version.h>
#include <ipxe/http.h>
/* Disambiguate the various error causes */
@@ -1141,11 +1142,11 @@ static void http_step ( struct http_request *http ) {
/* Send request */
if ( ( rc = xfer_printf ( &http->socket,
"%s %s HTTP/1.1\r\n"
- "User-Agent: iPXE/" VERSION "\r\n"
+ "User-Agent: iPXE/%s\r\n"
"Host: %s%s%s\r\n"
"%s%s%s"
"\r\n",
- method, uri, http->uri->host,
+ method, uri, product_version, http->uri->host,
( http->uri->port ?
":" : "" ),
( http->uri->port ?