fix: wrong header name
parent
095f86ad72
commit
acbe8dc314
|
@ -117,7 +117,7 @@ typedef enum http_response_type {
|
||||||
|
|
||||||
typedef enum http_header {
|
typedef enum http_header {
|
||||||
http_header_connection = 0,
|
http_header_connection = 0,
|
||||||
http_header_redirect = 1
|
http_header_location = 1
|
||||||
} http_header;
|
} http_header;
|
||||||
|
|
||||||
typedef struct http_response_header {
|
typedef struct http_response_header {
|
||||||
|
|
|
@ -88,7 +88,7 @@ const char *http_response_type_names[5][32] = {
|
||||||
|
|
||||||
const char *http_header_names[] = {
|
const char *http_header_names[] = {
|
||||||
"Connection",
|
"Connection",
|
||||||
"Redirect"
|
"Location"
|
||||||
};
|
};
|
||||||
|
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
Loading…
Reference in New Issue