mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-06 18:18:52 +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 *host = nullptr;
|
||||
const char *method = nullptr;
|
||||
const char *content_length = nullptr;
|
||||
|
||||
for (size_t i = 0; nv[i]; i += 2) {
|
||||
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) {
|
||||
host = nv[i + 1];
|
||||
} 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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user