Skip to content

Commit 38d302c

Browse files
authored
[CHORE] default version gets yanked on pip install (#8)
chore: fix yanking issue
1 parent e85db8d commit 38d302c

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "httpmorph"
7-
version = "0.1.0-alpha.1"
7+
version = "0.1.2"
88
description = "A Python HTTP client focused on mimicking browser fingerprints."
99
readme = "README.md"
1010
requires-python = ">=3.8"

src/bindings/_httpmorph.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ cdef class Client:
225225

226226
# Add default headers that will be added by C code if not present
227227
if 'User-Agent' not in request_headers:
228-
request_headers['User-Agent'] = 'httpmorph/0.1.0-alpha.1'
228+
request_headers['User-Agent'] = 'httpmorph/0.1.2'
229229
if 'Accept' not in request_headers:
230230
request_headers['Accept'] = '*/*'
231231
if 'Connection' not in request_headers:
@@ -464,7 +464,7 @@ cdef class Session:
464464
'safari': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15',
465465
'edge': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0',
466466
}
467-
default_ua = browser_user_agents.get(self._browser, 'httpmorph/0.1.0-alpha.1')
467+
default_ua = browser_user_agents.get(self._browser, 'httpmorph/0.1.2')
468468

469469
# Add browser-specific User-Agent header if not already set
470470
has_user_agent = False

src/core/httpmorph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ static int send_http_request(SSL *ssl, int sockfd, const httpmorph_request_t *re
11701170
/* Add default headers if missing */
11711171
if (!has_user_agent) {
11721172
/* Use request's user agent if set, otherwise use generic */
1173-
const char *user_agent = request->user_agent ? request->user_agent : "httpmorph/0.1.0-alpha.1";
1173+
const char *user_agent = request->user_agent ? request->user_agent : "httpmorph/0.1.2";
11741174
p += snprintf(p, SNPRINTF_SIZE(end - p), "User-Agent: %s\r\n", user_agent);
11751175
}
11761176
if (!has_accept) {

src/httpmorph/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import sys
1010

11-
__version__ = "0.1.0-alpha.1"
11+
__version__ = "0.1.2"
1212
__author__ = "Arman Hossain"
1313
__license__ = "MIT"
1414

src/httpmorph/_client_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,4 +881,4 @@ def version():
881881
"""Get library version"""
882882
if HAS_C_EXTENSION:
883883
return _httpmorph.version()
884-
return "0.1.0-alpha.1"
884+
return "0.1.2"

tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
httpmorph test suite
33
"""
44

5-
__version__ = "0.1.0-alpha.1"
5+
__version__ = "0.1.2"

0 commit comments

Comments
 (0)