]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add define x-status header constant
authorBastian Dehn <hhaalo@arcor.de>
Tue, 31 Dec 2024 10:41:25 +0000 (11:41 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 31 Dec 2024 10:41:25 +0000 (11:41 +0100)
src/kds_s2000w_client.c

index 9993d0a71c5ae3a9eea7a8aab4b0a7c760c0cef7..f3dbe003e8e9923e74dd9cef1813594f81715a05 100644 (file)
@@ -7,12 +7,14 @@
 #include "kds_s2000w_client.h"
 #include "kds_s2000w_debug.h"
 
+#define X_STATUS_HEADER "x-status"
+
 CURL* curl = NULL;
 
 void _kds_s2000w_client_read_error_status(CURL* curl, response* resp)
 {
        struct curl_header* header = NULL;
-       curl_easy_header(curl, "x-status", 0, CURLH_HEADER, -1, &header);
+       curl_easy_header(curl, X_STATUS_HEADER, 0, CURLH_HEADER, -1, &header);
 
        if (header == NULL)
                return;