From d1793e3b5a116e13bf35af0bc766d7ab5366c80e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 26 Feb 2015 23:02:56 +0900 Subject: [PATCH] Add missing entry to nghttp2_strerror() --- lib/nghttp2_helper.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/nghttp2_helper.c b/lib/nghttp2_helper.c index 4b59e634..79f8e92b 100644 --- a/lib/nghttp2_helper.c +++ b/lib/nghttp2_helper.c @@ -267,8 +267,6 @@ const char *nghttp2_strerror(int error_code) { return "Invalid stream state"; case NGHTTP2_ERR_DEFERRED_DATA_EXIST: return "Another DATA frame has already been deferred"; - case NGHTTP2_ERR_SESSION_CLOSING: - return "The current session is closing"; case NGHTTP2_ERR_START_STREAM_NOT_ALLOWED: return "request HEADERS is not allowed"; case NGHTTP2_ERR_GOAWAY_ALREADY_SENT: @@ -295,6 +293,10 @@ const char *nghttp2_strerror(int error_code) { return "Server push is disabled by peer"; case NGHTTP2_ERR_DATA_EXIST: return "DATA frame already exists"; + case NGHTTP2_ERR_SESSION_CLOSING: + return "The current session is closing"; + case NGHTTP2_ERR_HTTP_HEADER: + return "Invalid HTTP header field was received"; case NGHTTP2_ERR_NOMEM: return "Out of memory"; case NGHTTP2_ERR_CALLBACK_FAILURE: