Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
1.3.0 (#21)
Browse files Browse the repository at this point in the history
hroederld authored Apr 19, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d36f149 commit d86d8f8
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,10 @@

All notable changes to the LaunchDarkly C SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).

## [1.3.0] - 2019-04-18
### Added:
- Version string macro `LD_SDK_VERSION` in `ldapi.h`

## [1.2.2] - 2019-04-16
### Fixed:
- Ensure `LDSetLogFunction` is properly exported in shared libraries
2 changes: 2 additions & 0 deletions ldapi.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef C_CLIENT_LDIAPI_H
#define C_CLIENT_LDIAPI_H

#define LD_SDK_VERSION "1.3.0"

#ifdef _WIN32
#define LD_EXPORT(x) __declspec(dllexport) x
#else
4 changes: 2 additions & 2 deletions ldnet.c
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@
#include "ldinternal.h"

#define LD_STREAMTIMEOUT 300
#define LD_USER_AGENT_HEADER "User-Agent: CClient/" LD_SDK_VERSION

struct MemoryStruct {
char *memory;
@@ -123,8 +124,7 @@ prepareShared(const char *const url, const LDConfig *const config,
LDi_log(LD_LOG_CRITICAL, "curl_slist_append failed for headerauth"); goto error;
}

const char *const headeragent = "User-Agent: CClient/1.2.2";
if (!(headers = curl_slist_append(headers, headeragent))) {
if (!(headers = curl_slist_append(headers, LD_USER_AGENT_HEADER))) {
LDi_log(LD_LOG_CRITICAL, "curl_slist_append failed for headeragent"); goto error;
}

0 comments on commit d86d8f8

Please sign in to comment.