remove versioning numbers, i hate them.

This commit is contained in:
Joris Vink 2013-07-16 15:30:20 +02:00
parent 341172f844
commit 2c1352b226
3 changed files with 2 additions and 11 deletions

View File

@ -38,9 +38,6 @@
#define KORE_RESULT_OK 1
#define KORE_RESULT_RETRY 2
#define KORE_VERSION_MAJOR 0
#define KORE_VERSION_MINOR 1
#define KORE_VERSION_PATCH 0
#define KORE_NAME_STRING "kore"
#define errno_s strerror(errno)
@ -212,7 +209,6 @@ extern char *runas_user;
extern char *kore_module_onload;
extern char *kore_pidfile;
extern char *config_file;
extern char kore_version_string[];
extern char *kore_ssl_cipher_list;
extern u_int64_t spdy_idle_time;

View File

@ -226,7 +226,7 @@ http_response(struct http_request *req, int status, u_int8_t *d, u_int32_t len)
hblock = spdy_header_block_create(SPDY_HBLOCK_NORMAL);
spdy_header_block_add(hblock, ":status", sbuf);
spdy_header_block_add(hblock, ":version", "HTTP/1.1");
spdy_header_block_add(hblock, ":server", kore_version_string);
spdy_header_block_add(hblock, ":server", KORE_NAME_STRING);
TAILQ_FOREACH(hdr, &(req->resp_headers), list)
spdy_header_block_add(hblock, hdr->header, hdr->value);
@ -259,7 +259,7 @@ http_response(struct http_request *req, int status, u_int8_t *d, u_int32_t len)
kore_buf_appendf(buf, "Content-length: %d\r\n", len);
kore_buf_appendf(buf, "Connection: keep-alive\r\n");
kore_buf_appendf(buf, "Keep-Alive: timeout=20\r\n");
kore_buf_appendf(buf, "Server: %s\r\n", kore_version_string);
kore_buf_appendf(buf, "Server: %s\r\n", KORE_NAME_STRING);
TAILQ_FOREACH(hdr, &(req->resp_headers), list) {
kore_buf_appendf(buf, "%s: %s\r\n",

View File

@ -32,7 +32,6 @@ u_int8_t worker_count = 0;
char *server_ip = NULL;
char *runas_user = NULL;
char *chroot_path = NULL;
char kore_version_string[32];
char *kore_pidfile = KORE_PIDFILE_DEFAULT;
char *kore_ssl_cipher_list = KORE_DEFAULT_CIPHER_LIST;
@ -164,10 +163,6 @@ kore_server_start(void)
kore_log(LOG_NOTICE, "kore is starting up");
kore_platform_proctitle("kore [parent]");
snprintf(kore_version_string, sizeof(kore_version_string),
"%s-%d.%d.%d", KORE_NAME_STRING, KORE_VERSION_MAJOR,
KORE_VERSION_MINOR, KORE_VERSION_PATCH);
kore_worker_init();
for (;;) {