From 2b28b7217676b2ffbc14b924723fa016f0b45951 Mon Sep 17 00:00:00 2001 From: Steve Pinkham Date: Tue, 9 Aug 2011 15:47:01 -0400 Subject: [PATCH] 1.86b: Auth header and time display fixes - HTTP auth header value changed from "basic" to "Basic" to compensate for picky web frameworks. - Minor fix to time display code. --- ChangeLog | 8 ++++++++ Makefile | 2 +- http_client.c | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9f814d2..4837b38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Version 1.86b: +-------------- + + - HTTP auth header value changed from "basic" to "Basic" to + compensate for picky web frameworks. + + - Minor fix to time display code. + Version 1.85b: -------------- diff --git a/Makefile b/Makefile index 5438a0a..e76ccef 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ # PROGNAME = skipfish -VERSION = 1.85b +VERSION = 1.86b OBJFILES = http_client.c database.c crawler.c analysis.c report.c INCFILES = alloc-inl.h string-inl.h debug.h types.h http_client.h \ diff --git a/http_client.c b/http_client.c index 74fea64..b854185 100644 --- a/http_client.c +++ b/http_client.c @@ -958,7 +958,7 @@ u8* build_request_data(struct http_request* req) { lpb64 = b64_encode(lp, strlen((char*)lp)); - ASD("Authorization: basic "); + ASD("Authorization: Basic "); ASD(lpb64); ASD("\r\n"); @@ -2482,7 +2482,7 @@ void http_stats(u64 st_time) { en_time = tv.tv_sec * 1000LL + tv.tv_usec / 1000; SAY(cLBL "Scan statistics:\n\n" - cGRA " Scan time : " cNOR "%u:%02u:%02u.%04u\n" + cGRA " Scan time : " cNOR "%u:%02u:%02u.%03u\n" cGRA " HTTP requests : " cNOR "%u (%.01f/s), %llu kB in, " "%llu kB out (%.01f kB/s) \n" cGRA " Compression : " cNOR "%llu kB in, %llu kB out "