@@ -880,16 +880,16 @@ static void dump_request(const char *request)
880
880
881
881
if (davix_get_log_scope () & NE_DBG_HTTPPLAIN ) {
882
882
/* Display everything mode */
883
- NE_DEBUG (NE_DBG_HTTP , "%s" , hdr_debug );
884
- } else if (davix_get_log_scope () & NE_DBG_HTTP ) {
883
+ NE_DEBUG (NE_DBG_HDR , "%s" , hdr_debug );
884
+ } else if (davix_get_log_scope () & NE_DBG_HDR ) {
885
885
/* Blank out the Authorization parameters */
886
886
char * reqdebug = ne_strdup (hdr_debug ), * pnt = reqdebug ;
887
887
while ((pnt = strstr (pnt , "Authorization: " )) != NULL ) {
888
888
for (pnt += 15 ; * pnt != '\r' && * pnt != '\0' ; pnt ++ ) {
889
889
* pnt = 'x' ;
890
890
}
891
891
}
892
- NE_DEBUG (NE_DBG_HTTP , "%s" ,reqdebug );
892
+ NE_DEBUG (NE_DBG_HDR , "%s" ,reqdebug );
893
893
894
894
ne_free (reqdebug );
895
895
}
@@ -925,7 +925,7 @@ static int read_status_line(ne_request *req, ne_status *status, int retry)
925
925
}
926
926
927
927
strip_eol (buffer , & ret );
928
- NE_DEBUG (NE_DBG_HTTP , "< %s" , buffer );
928
+ NE_DEBUG (NE_DBG_HDR , "< %s" , buffer );
929
929
930
930
if (status -> reason_phrase ) ne_free (status -> reason_phrase );
931
931
memset (status , 0 , sizeof * status );
@@ -1039,7 +1039,7 @@ static int read_message_header(ne_request *req, char *buf, size_t buflen)
1039
1039
return aborted (req , _ ("Error reading response headers" ), n );
1040
1040
1041
1041
strip_eol (buf , & n );
1042
- NE_DEBUG (NE_DBG_HTTP , "< %s" , buf );
1042
+ NE_DEBUG (NE_DBG_HDR , "< %s" , buf );
1043
1043
1044
1044
if (n == 0 ) {
1045
1045
NE_DEBUG (NE_DBG_CORE , "End of headers." );
@@ -1215,7 +1215,7 @@ int ne_begin_request(ne_request *req)
1215
1215
1216
1216
/* Build the request string, and send it */
1217
1217
data = build_request (req );
1218
- if (davix_get_log_scope () & NE_DBG_HTTP ){
1218
+ if (davix_get_log_scope () & NE_DBG_HDR ){
1219
1219
dump_request (data -> data );
1220
1220
}
1221
1221
ret = send_request (req , data );
0 commit comments