From 727662257c142efe644d0b673fbd4861054ccde3 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 17 Sep 2014 23:25:47 +0900 Subject: [PATCH] Add missing NGHTTP2_ERR_BAD_PREFACE to nghttp2_strerror --- lib/nghttp2_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/nghttp2_helper.c b/lib/nghttp2_helper.c index bc10236a..105c6bcb 100644 --- a/lib/nghttp2_helper.c +++ b/lib/nghttp2_helper.c @@ -225,6 +225,8 @@ const char* nghttp2_strerror(int error_code) return "Out of memory"; case NGHTTP2_ERR_CALLBACK_FAILURE: return "The user callback function failed"; + case NGHTTP2_ERR_BAD_PREFACE: + return "Received bad connection preface"; default: return "Unknown error code"; }