mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-08 02:58:53 +08:00
nghttpx: Remove unused variable
This commit is contained in:
@@ -164,7 +164,6 @@ void on_ctrl_recv_callback(spdylay_session *session, spdylay_frame_type type,
|
|||||||
const char *scheme = nullptr;
|
const char *scheme = nullptr;
|
||||||
const char *host = nullptr;
|
const char *host = nullptr;
|
||||||
const char *method = nullptr;
|
const char *method = nullptr;
|
||||||
const char *content_length = nullptr;
|
|
||||||
|
|
||||||
for (size_t i = 0; nv[i]; i += 2) {
|
for (size_t i = 0; nv[i]; i += 2) {
|
||||||
if (strcmp(nv[i], ":path") == 0) {
|
if (strcmp(nv[i], ":path") == 0) {
|
||||||
@@ -176,9 +175,6 @@ void on_ctrl_recv_callback(spdylay_session *session, spdylay_frame_type type,
|
|||||||
} else if (strcmp(nv[i], ":host") == 0) {
|
} else if (strcmp(nv[i], ":host") == 0) {
|
||||||
host = nv[i + 1];
|
host = nv[i + 1];
|
||||||
} else if (nv[i][0] != ':') {
|
} else if (nv[i][0] != ':') {
|
||||||
if (strcmp(nv[i], "content-length") == 0) {
|
|
||||||
content_length = nv[i + 1];
|
|
||||||
}
|
|
||||||
downstream->add_request_header(nv[i], nv[i + 1]);
|
downstream->add_request_header(nv[i], nv[i + 1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user