Skip to content

Commit 8b0c32a

Browse files
authored
Merge pull request #1631 from fastfetch-cli/dev
Release v2.39.1
2 parents db6e4f4 + db269d2 commit 8b0c32a

File tree

6 files changed

+23
-6
lines changed

6 files changed

+23
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 2.39.1
2+
3+
Bugfixes:
4+
* Fix a regression that PublicIP detection fails randomly (PublicIP, #1629)
5+
16
# 2.39.0
27

38
Changes:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url
22

33
project(fastfetch
4-
VERSION 2.39.0
4+
VERSION 2.39.1
55
LANGUAGES C
66
DESCRIPTION "Fast neofetch-like system information tool"
77
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"

debian/changelog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
fastfetch (2.39.0ubuntu1) jammy; urgency=medium
2+
3+
* Remove unwanted debugging code
4+
5+
-- Carter Li <[email protected]> Thu, 20 Mar 2025 10:39:22 +0800
6+
7+
fastfetch (2.39.0) jammy; urgency=medium
8+
9+
* Update to 2.39.0
10+
11+
-- Carter Li <[email protected]> Thu, 20 Mar 2025 10:35:18 +0800
12+
113
fastfetch (2.38.0) jammy; urgency=medium
214

315
* Update to 2.38.0

debian/files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fastfetch_2.38.0_source.buildinfo universe/utils optional
1+
fastfetch_2.39.0ubuntu1_source.buildinfo universe/utils optional

src/common/networking/networking_linux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ static const char* initNetworkingState(FFNetworkingState* state, const char* hos
189189
ffStrbufInitA(&state->command, 64);
190190
ffStrbufAppendS(&state->command, "GET ");
191191
ffStrbufAppendS(&state->command, path);
192-
ffStrbufAppendS(&state->command, " HTTP/1.1\nHost: ");
192+
ffStrbufAppendS(&state->command, " HTTP/1.0\nHost: ");
193193
ffStrbufAppendS(&state->command, host);
194194
ffStrbufAppendS(&state->command, "\r\n");
195195

@@ -476,7 +476,7 @@ const char* ffNetworkingRecvHttpResponse(FFNetworkingState* state, FFstrbuf* buf
476476
return "Content length mismatch";
477477
}
478478

479-
if (ffStrbufStartsWithS(buffer, "HTTP/1.1 200 OK\r\n")) {
479+
if (ffStrbufStartsWithS(buffer, "HTTP/1.0 200 OK\r\n")) {
480480
FF_DEBUG("Received valid HTTP 200 response, content %u bytes, total %u bytes", contentLength, buffer->length);
481481
} else {
482482
FF_DEBUG("Invalid response: %.40s...", buffer->chars);

src/common/networking/networking_windows.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const char* ffNetworkingSendHttpRequest(FFNetworkingState* state, const char* ho
151151
FF_STRBUF_AUTO_DESTROY command = ffStrbufCreateA(64);
152152
ffStrbufAppendS(&command, "GET ");
153153
ffStrbufAppendS(&command, path);
154-
ffStrbufAppendS(&command, " HTTP/1.1\nHost: ");
154+
ffStrbufAppendS(&command, " HTTP/1.0\nHost: ");
155155
ffStrbufAppendS(&command, host);
156156
ffStrbufAppendS(&command, "\r\n");
157157
ffStrbufAppendS(&command, "Connection: close\r\n"); // Explicitly request connection closure
@@ -314,7 +314,7 @@ const char* ffNetworkingRecvHttpResponse(FFNetworkingState* state, FFstrbuf* buf
314314
return "No HTTP header end found";
315315
}
316316

317-
if (ffStrbufStartsWithS(buffer, "HTTP/1.1 200 OK\r\n")) {
317+
if (ffStrbufStartsWithS(buffer, "HTTP/1.0 200 OK\r\n")) {
318318
FF_DEBUG("Received valid HTTP 200 response, content length: %u bytes, total length: %u bytes",
319319
contentLength, buffer->length);
320320
} else {

0 commit comments

Comments
 (0)