diff options
-rw-r--r-- | src/reclaim/plugin_rest_openid_connect.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c index 88b928526..1c00abcbd 100644 --- a/src/reclaim/plugin_rest_openid_connect.c +++ b/src/reclaim/plugin_rest_openid_connect.c | |||
@@ -656,7 +656,10 @@ do_error (void *cls) | |||
656 | handle->response_code = MHD_HTTP_BAD_REQUEST; | 656 | handle->response_code = MHD_HTTP_BAD_REQUEST; |
657 | resp = GNUNET_REST_create_response (json_error); | 657 | resp = GNUNET_REST_create_response (json_error); |
658 | if (MHD_HTTP_UNAUTHORIZED == handle->response_code) | 658 | if (MHD_HTTP_UNAUTHORIZED == handle->response_code) |
659 | MHD_add_response_header (resp, MHD_HTTP_HEADER_WWW_AUTHENTICATE, "Basic"); | 659 | GNUNET_assert (MHD_NO != |
660 | MHD_add_response_header (resp, | ||
661 | MHD_HTTP_HEADER_WWW_AUTHENTICATE, | ||
662 | "Basic")); | ||
660 | MHD_add_response_header (resp, | 663 | MHD_add_response_header (resp, |
661 | MHD_HTTP_HEADER_CONTENT_TYPE, | 664 | MHD_HTTP_HEADER_CONTENT_TYPE, |
662 | "application/json"); | 665 | "application/json"); |